Sha256: d5c4cc66b85cca16e93c9ce18a5e33770aa5c7ff444d979ef09f635f464f7450
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
require 'support/capybara_app_helper' RSpec.describe "Zanox Integration" do before do setup_app(action: :zanox) do |tracker| tracker.handler(:zanox, { account_id: '12345H123456789' } ) end visit '/' end subject { page } it 'should include the mastertag event' do expect(page.find("body")).to have_content "window._zx.push({\"id\": \"blurg567\"});" end it 'should include the track event' do expect(page).to have_xpath "//script[contains(@src,'12345H123456789&mode=[[1]]&CustomerID=[[123456]]&OrderID=[[DEFC-4321]]&CurrencySymbol=[[EUR]]&TotalPrice=[[150.00]]')]" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack-tracker-0.4.2 | spec/integration/zanox_integration_spec.rb |
rack-tracker-0.4.1 | spec/integration/zanox_integration_spec.rb |