Skip to content

Commit

Permalink
Merge pull request #3762 from alphagov/remove-placeholder-from-helpers
Browse files Browse the repository at this point in the history
Remove `placeholder` schema from helpers
  • Loading branch information
jkempster34 authored Sep 15, 2023
2 parents e2aa677 + ad3b686 commit 563672a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/support/content_store_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def basic_taxon
}
end

def content_store_has_random_item(base_path:, schema: "placeholder", is_tagged_to_taxon: false, details: {})
def content_store_has_random_item(base_path:, schema: "generic", is_tagged_to_taxon: false, details: {})
content_item = GovukSchemas::RandomExample.for_schema(frontend_schema: schema) do |item|
taxons = is_tagged_to_taxon ? [basic_taxon] : []
item.merge!(
Expand All @@ -47,7 +47,7 @@ def stub_content_store_has_item_tagged_to_taxon(base_path:, payload:)
stub_content_store_has_item(base_path, content_item)
end

def content_store_has_page(slug, schema: "placeholder", is_tagged_to_taxon: false)
def content_store_has_page(slug, schema: "generic", is_tagged_to_taxon: false)
content_store_has_random_item(base_path: "/#{slug}", schema:, is_tagged_to_taxon:)
end

Expand Down

0 comments on commit 563672a

Please sign in to comment.