Skip to content

Commit

Permalink
lint: model test
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed Feb 24, 2025
1 parent c23b09b commit 4506ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/landing_page_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 4506ff2

Please sign in to comment.