Skip to content

Commit 78cb949

Browse files
committed
fix test to properly fail without scheme pattern match
1 parent 7e8d967 commit 78cb949

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/lib/secure_headers/headers/content_security_policy_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ module SecureHeaders
107107
end
108108

109109
it "does not deduplicate non-matching schema source expressions" do
110-
csp = ContentSecurityPolicy.new(default_src: %w(*.example.org wss://*.example.org))
111-
expect(csp.value).to eq("default-src *.example.org wss://*.example.org")
110+
csp = ContentSecurityPolicy.new(default_src: %w(*.example.org wss://example.example.org))
111+
expect(csp.value).to eq("default-src *.example.org wss://example.example.org")
112112
end
113113

114114
it "creates maximally strict sandbox policy when passed no sandbox token values" do

0 commit comments

Comments
 (0)