Sha256: 787d09f8a8f6d07bf45300ad61d4d0e377d398290a4e349facd2556167c3cb3e

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

require 'support/capybara_app_helper'

RSpec.describe "Heap Integration" do
  before do
    setup_app(action: :heap) do |tracker|
      tracker.handler :heap, { env_id: '12341234' }
    end

    visit '/'
  end

  subject { page }

  it 'embeds the script with site_id' do
    expect(page).to have_content('heap.load("12341234");')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rack-tracker-1.13.0 spec/integration/heap_integration_spec.rb
rack-tracker-1.12.1 spec/integration/heap_integration_spec.rb
rack-tracker-1.12.0 spec/integration/heap_integration_spec.rb