Sha256: f96c71802fb8286d4b6fb0d1f6d2646797ee65254a1912f2c17ad0fd88fd3656

Contents?: true

Size: 363 Bytes

Versions: 8

Compression:

Stored size: 363 Bytes

Contents

require 'support/capybara_app_helper'

RSpec.describe "Bing Integration" do
  before do
    setup_app(action: :bing) do |tracker|
      tracker.handler :bing, { tracker: '12345678' }
    end
    visit '/'
  end

  subject { page }

  it "embeds the script tag with tracker" do
    expect(page.find("body")).to have_content('var o = {ti: "12345678"};')
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rack-tracker-1.13.0 spec/integration/bing_integration_spec.rb
rack-tracker-1.12.1 spec/integration/bing_integration_spec.rb
rack-tracker-1.12.0 spec/integration/bing_integration_spec.rb
rack-tracker-1.11.2 spec/integration/bing_integration_spec.rb
rack-tracker-1.11.1 spec/integration/bing_integration_spec.rb
rack-tracker-1.11.0 spec/integration/bing_integration_spec.rb
rack-tracker-1.10.0 spec/integration/bing_integration_spec.rb
rack-tracker-1.9.0 spec/integration/bing_integration_spec.rb