diff --git a/spec/dummy/config/environments/development.rb b/spec/dummy/config/environments/development.rb index 35c551f615..450e98e5b2 100644 --- a/spec/dummy/config/environments/development.rb +++ b/spec/dummy/config/environments/development.rb @@ -12,6 +12,9 @@ # Show full error reports. config.consider_all_requests_local = true + # Allow requests for all domains e.g. .dev.gov.uk + config.hosts.clear + # Enable/disable caching. By default caching is disabled. if Rails.root.join("tmp/caching-dev.txt").exist? config.action_controller.perform_caching = true diff --git a/spec/lib/govuk_publishing_components/presenters/machine_readable/html_publication_schema_spec.rb b/spec/lib/govuk_publishing_components/presenters/machine_readable/html_publication_schema_spec.rb index e1419372d3..751e467613 100644 --- a/spec/lib/govuk_publishing_components/presenters/machine_readable/html_publication_schema_spec.rb +++ b/spec/lib/govuk_publishing_components/presenters/machine_readable/html_publication_schema_spec.rb @@ -30,7 +30,7 @@ it "behaves like an article" do expect(structured_data["@type"]).to eql("Article") - expect(structured_data["articleBody"]).to eq(page.body) + expect(structured_data["articleBody"].to_s).to eq(page.body) end context "when one heading present" do