Skip to content

Commit

Permalink
Merge pull request #324 from alphagov/fix-test
Browse files Browse the repository at this point in the history
Fix GovukContentSecurityPolicy test
  • Loading branch information
AgaDufrat committed Oct 5, 2023
2 parents 6438507 + 6c709b2 commit 4e81e17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/lib/govuk_content_security_policy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@

describe ".configure" do
it "creates a policy" do
Rails.application.config.content_security_policy = nil

expect { GovukContentSecurityPolicy.configure }
.to change { Rails.application.config.content_security_policy }
.from(nil)
.to(an_instance_of(ActionDispatch::ContentSecurityPolicy))
end

Expand Down

0 comments on commit 4e81e17

Please sign in to comment.