Sha256: a531d344991da514610eee2231b9647cdfc4d3bce1d5bd6c5e7ec7fe002fd1f0
Contents?: true
Size: 669 Bytes
Versions: 1
Compression:
Stored size: 669 Bytes
Contents
require 'test_helper' module Workarea module Storefront class ZendeskIntegrationTest < Workarea::IntegrationTest include Workarea::Storefront::IntegrationTest def test_js_widgent_presence Workarea.with_config do |config| key = "PUBLIC_KEY" config.zendesk.public_key = key get storefront.root_path assert_includes(response.body, 'https://static.zdassets.com/ekr/snippet.js?key=PUBLIC_KEY') config.zendesk.public_key = nil get storefront.root_path refute_includes(response.body, 'https://static.zdassets.com/ekr/snippet.js?key=') end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-zendesk-1.0.0 | test/integration/workarea/storefront/zendesk_integration_test.rb |