Skip to content
Snippets Groups Projects
Commit 12d16028 authored by Arnold van der Meulen's avatar Arnold van der Meulen
Browse files

Add spec

parent 3fe10700
No related tags found
1 merge request!19Add hsts header middleware
......@@ -33,4 +33,11 @@ describe Roqua::Middleware::RemoveHstsHeader do
expect(response.headers.keys).to_not include('Strict-Transport-Security')
end
it 'does not remove the header without the middleware' do
request = Rack::MockRequest.new(app)
response = request.get('/some/path', 'CONTENT_TYPE' => 'text/plain')
expect(response.headers.keys).to include('Strict-Transport-Security')
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment