debian-mirror-gitlab/spec/features/users/zuora_csp_spec.rb
2023-03-05 14:24:40 +05:30

20 lines
519 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Zuora content security policy', feature_category: :purchase 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