gitlab-org--gitlab-foss/spec/support/matchers/security_header_matcher.rb
2019-07-25 17:33:34 +12:00

7 lines
188 B
Ruby

# frozen_string_literal: true
RSpec::Matchers.define :include_security_headers do |expected|
match do |actual|
expect(actual.headers).to include('X-Content-Type-Options')
end
end