Convert tags
controller spec to system and request specs (#31708)
This commit is contained in:
parent
0437dd9e77
commit
219458d7d4
3 changed files with 75 additions and 45 deletions
16
spec/system/tags_spec.rb
Normal file
16
spec/system/tags_spec.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe 'Tags' do
|
||||
describe 'Viewing a tag' do
|
||||
let(:tag) { Fabricate(:tag, name: 'test') }
|
||||
|
||||
it 'visits the tag page and renders the web app' do
|
||||
visit tag_path(tag)
|
||||
|
||||
expect(page)
|
||||
.to have_css('noscript', text: /Mastodon/)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue