Skip to content

Commit

Permalink
Added test for override_csp [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Dec 28, 2021
1 parent 2689f1e commit 88b885c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/queries_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,16 @@ def test_images
Blazer.images = previous_value
end
end

def test_override_csp
previous_value = Blazer.override_csp
begin
Blazer.override_csp = true
get blazer.root_path
assert_response :success
assert response.headers["Content-Security-Policy"]
ensure
Blazer.override_csp = previous_value
end
end
end

0 comments on commit 88b885c

Please # to comment.