summaryrefslogtreecommitdiff
path: root/spec/features/users/bizible_csp_spec.rb
blob: 6c62cf9e0a2a77e9a49befa657c57e99a6ca9273 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'Bizible content security policy', feature_category: :purchase do
  before do
    stub_config(extra: { one_trust_id: SecureRandom.uuid })
  end

  it 'has proper Content Security Policy headers' do
    visit root_path

    expect(response_headers['Content-Security-Policy']).to include('https://cdn.bizible.com/scripts/bizible.js')
  end
end