Skip to content

Commit

Permalink
WIP Atom tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leenagupte committed Sep 24, 2024
1 parent 7f2c881 commit abfcfd8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/system/travel_advice_atom_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,16 @@
expect(page).to have_xpath(".//feed/entry", count: 20)
end
end

context "individual country feed" do
it "displays a country as an atom feed" do
content_store_response = GovukSchemas::Example.find("travel_advice", example_name: "full-country")
base_path = content_store_response.fetch("base_path")
stub_content_store_has_item(base_path, content_store_response)

visit "#{base_path}.atom"

expect(page.status_code).to eq(200)
end
end
end

0 comments on commit abfcfd8

Please sign in to comment.