From 4506ff2b45f9ffed94b0a1e2c6d6cf63c6d6c5af Mon Sep 17 00:00:00 2001 From: Keith Lawrence Date: Mon, 24 Feb 2025 13:51:07 +0000 Subject: [PATCH] lint: model test --- spec/models/landing_page_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"