Sha256: 511ed681771daaa8594a155e3e54576d32d81dd599ac2bb47052dd7ce8ef01e4
Contents?: true
Size: 634 Bytes
Versions: 2
Compression:
Stored size: 634 Bytes
Contents
require 'test_helper' module Workarea module Storefront class EmarsysTrackingSystemTest < Workarea::SystemTest def test_emarsys_tracking_js settings = Workarea::Emarsys::Configuration.create!(merchant_id: 'abcdefg') visit storefront.root_path emarsys_script = find('script', text: 'abcdefg', visible: false) assert(emarsys_script.present?) settings.merchant_id = nil settings.save! 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-emarsys-1.0.4 | test/system/workarea/storefront/emarsys_tracking_system_test.rb |
workarea-emarsys-1.0.3 | test/system/workarea/storefront/emarsys_tracking_system_test.rb |