debian-mirror-gitlab/spec/features/users/zuora_csp_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
490 B
Ruby
Raw Normal View History

2022-07-23 23:45:48 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Zuora content security policy' do
let(:user) { create(:user) }
let(:project) { create(:project) }
let(:pipeline) { create(:ci_pipeline, project: project) }
before do
project.add_developer(user)
sign_in(user)
end
it 'has proper Content Security Policy headers' do
visit pipeline_path(pipeline)
expect(response_headers['Content-Security-Policy']).to include('https://*.zuora.com')
end
end