Skip to content

Commit

Permalink
Merge pull request #4576 from alphagov/move-withdrawn-tests
Browse files Browse the repository at this point in the history
Move where the withdrawn shared example is called
  • Loading branch information
leenagupte authored Jan 10, 2025
2 parents f08c084 + 76076bc commit cdd8c58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions spec/models/content_item_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
RSpec.describe ContentItem do
subject(:content_item) { build(:content_item_with_data_attachments, schema_name: "fancy_page_type") }

it_behaves_like "it can be withdrawn", "detailed_guide", "withdrawn_detailed_guide"

describe "ordered_related_items attribute" do
it "leaves ordered_related_items if set" do
subject = described_class.new(
Expand Down
1 change: 1 addition & 0 deletions spec/models/travel_advice_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
let(:content_store_response) { GovukSchemas::Example.find("travel_advice", example_name: "full-country") }

it_behaves_like "it has parts", "travel_advice", "full-country"
it_behaves_like "it can be withdrawn", "travel_advice", "withdrawn-full-country"

describe "#alert_status" do
it "adds allowed statuses" do
Expand Down

0 comments on commit cdd8c58

Please sign in to comment.