diff --git a/spec/system/travel_advice_atom_spec.rb b/spec/system/travel_advice_atom_spec.rb index eb0641be7e..4b2321c4fd 100644 --- a/spec/system/travel_advice_atom_spec.rb +++ b/spec/system/travel_advice_atom_spec.rb @@ -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