2024-09-03 13:18:53 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe 'Tags' do
|
|
|
|
describe 'Viewing a tag' do
|
|
|
|
let(:tag) { Fabricate(:tag, name: 'test') }
|
|
|
|
|
2024-09-05 11:54:27 +00:00
|
|
|
before { sign_in Fabricate(:user) }
|
|
|
|
|
2024-09-03 13:18:53 +00:00
|
|
|
it 'visits the tag page and renders the web app' do
|
|
|
|
visit tag_path(tag)
|
|
|
|
|
|
|
|
expect(page)
|
|
|
|
.to have_css('noscript', text: /Mastodon/)
|
2024-09-05 11:54:27 +00:00
|
|
|
.and have_private_cache_control
|
2024-09-03 13:18:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|