Sha256: d7c60472015b30abb149228d803fb479c928393c2da0298871e1ed783362f0a1
Contents?: true
Size: 582 Bytes
Versions: 3
Compression:
Stored size: 582 Bytes
Contents
require 'test_helper' module Workarea module Storefront class EmarsysTrackingSystemTest < Workarea::SystemTest def test_emarsys_tracking_js Workarea.config.merchant_id = 'abcdefg' visit storefront.root_path emarsys_script = find('script', text: 'abcdefg', visible: false) assert(emarsys_script.present?) Workarea.config.merchant_id = nil visit storefront.root_path emarsys_script = find('script', text: 'abcdefg', visible: false) rescue nil refute(emarsys_script.present?) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems