From 8d9a7aa50b5f4b1132ddc489cb1a28654ec47cea Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Thu, 4 Jun 2026 04:38:33 -0400 Subject: [PATCH] Exercise more of `tags/show.rss` view (#39269) --- spec/requests/tags_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/requests/tags_spec.rb b/spec/requests/tags_spec.rb index f04d1bc2d3..bacd85ca6f 100644 --- a/spec/requests/tags_spec.rb +++ b/spec/requests/tags_spec.rb @@ -6,6 +6,9 @@ RSpec.describe 'Tags' do describe 'GET /tags/:id' do context 'when tag exists' do let(:tag) { Fabricate :tag } + let(:status) { Fabricate :status } + + before { status.tags << tag } context 'with HTML format' do before { get tag_path(tag) } @@ -51,6 +54,8 @@ RSpec.describe 'Tags' do .and have_cacheable_headers.with_vary('Accept, Accept-Language, Cookie') expect(response.content_type) .to start_with('application/rss+xml') + expect(response.body) + .to include(status.text) end end end