diff --git a/spec/models/landing_page_spec.rb b/spec/models/landing_page_spec.rb index 08104cbc93..7a579e36f1 100644 --- a/spec/models/landing_page_spec.rb +++ b/spec/models/landing_page_spec.rb @@ -1,5 +1,6 @@ RSpec.describe LandingPage do subject(:landing_page) { ContentItemFactory.build(landing_page_example) } + let(:landing_page_example) { GovukSchemas::Example.find(:landing_page, example_name: :landing_page) } describe "#blocks" do @@ -48,7 +49,6 @@ expect(landing_page.theme).to eq("default") end - it "returns the default theme if theme is not in the list of accepted themes" do landing_page_example["details"]["theme"] = "missing-theme"