debian-mirror-gitlab/spec/support/matchers/security_header_matcher.rb
2019-10-12 21:52:04 +05:30

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