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: 760b1fddd06ae836ee4c2472b5fb9b89f2bf0702 (plain)
1
2
3
4
5
6
7
# 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