Skip to content

Commit

Permalink
smoke test for rss feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
pushcx committed Feb 27, 2024
1 parent f381d3b commit d9aba71
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/requests/home_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,16 @@
expect(response.body).to include('<span class="merge">')
end
end

describe "rss" do
it "renders" do
link = create(:story)
text = create(:story, url: nil, description: "text post")

get "/rss"
expect(response).to be_successful
expect(response.body).to include(link.title)
expect(response.body).to include(text.title)
end
end
end

0 comments on commit d9aba71

Please sign in to comment.