Sha256: ff5497b639c8e42259ce95cfde5bf6bc4aac7ec890a96c41195076f1d588f805
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-emarsys-1.0.2 | test/system/workarea/storefront/emarsys_tracking_system_test.rb |