0
0
Fork 0

Convert tags controller spec to system and request specs (#31708)

This commit is contained in:
Matt Jankowski 2024-09-03 09:18:53 -04:00 committed by GitHub
parent 0437dd9e77
commit 219458d7d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 75 additions and 45 deletions

16
spec/system/tags_spec.rb Normal file
View 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