1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-03 01:09:08 +09:00
YuruToot/spec/system/home_spec.rb
2024-09-04 05:12:25 +00:00

26 lines
521 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'Home page' do
context 'when signed in' do
before { sign_in Fabricate(:user) }
it 'visits the homepage and renders the web app' do
visit root_path
expect(page)
.to have_css('noscript', text: /Mastodon/)
end
end
context 'when not signed in' do
it 'visits the homepage and renders the web app' do
visit root_path
expect(page)
.to have_css('noscript', text: /Mastodon/)
end
end
end