Skip to content

Commit

Permalink
Merge pull request #1628 from alphagov/allow-requests-from-all-domains
Browse files Browse the repository at this point in the history
Allow requests for all domains e.g. <app>.dev.gov.uk
  • Loading branch information
alex-ju authored Jul 29, 2020
2 parents 63fa5e9 + 771eab6 commit 7317e1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions spec/dummy/config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
# Show full error reports.
config.consider_all_requests_local = true

# Allow requests for all domains e.g. <app>.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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7317e1e

Please sign in to comment.