debian-mirror-gitlab/spec/support/matchers/security_header_matcher.rb

6 lines
157 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
RSpec::Matchers.define :include_security_headers do |expected|
match do |actual|
expect(actual.headers).to include('X-Content-Type-Options')
end
end