Skip to content

Commit 8a314e1

Browse files
committed
add expectation that overriding the config stores the expected instance in env
1 parent 7e16537 commit 8a314e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/lib/secure_headers/middleware_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ module SecureHeaders
3333
end
3434
request = Rack::Request.new({})
3535
SecureHeaders.use_secure_headers_override(request, "my_custom_config")
36+
expect(request.env[SECURE_HEADERS_CONFIG]).to be(Configuration.get("my_custom_config"))
3637
_, env = middleware.call request.env
3738
expect(env[CSP::HEADER_NAME]).to match("example.org")
3839
end

0 commit comments

Comments
 (0)