Welcome to mirror list, hosted at ThFree Co, Russian Federation.

security_header_matcher.rb « matchers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f8518d13ebbb4011b52266c8658a676a74a88587 (plain)
1
2
3
4
5
RSpec::Matchers.define :include_security_headers do |expected|
  match do |actual|
    expect(actual.headers).to include('X-Content-Type-Options')
  end
end