Sha256: cf8905e013e67679d551eca15aa3a440ef127fdcc848bb7c405db773cf17159f
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
require 'test_helper' module Workarea module Storefront class KountIntegrationTest < Workarea::IntegrationTest setup :mock_kount_order def test_redirects_to_kount_data_collector_htm_path get '/logo.htm' assert_redirected_to("#{Workarea::Kount.data_collector_url}logo.htm?#{{ merchant_id: Workarea::Kount.merchant_id, s: kount_session_id }.to_query }") end def test_redirects_to_kount_data_collector_gif_path get '/logo.gif' assert_redirected_to("#{Workarea::Kount.data_collector_url}logo.htm?#{{ merchant_id: Workarea::Kount.merchant_id, s: kount_session_id }.to_query }") end private def mock_kount_order order = create_order Workarea::Storefront::KountController .any_instance.stubs(:current_order).returns(order) Workarea::Storefront::KountController .any_instance.stubs(:kount_session_id).returns(kount_session_id) end def kount_session_id @kount_session_id ||= '1234-092340423-52341' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-kount-3.3.1 | test/integration/workarea/storefront/kount_integration_test.rb |
workarea-kount-3.3.0 | test/integration/workarea/storefront/kount_integration_test.rb |