Sha256: 7388fd2776b5e72d6b098045efab64cc7fc94e7581041e79eb6c0a657fb0492f

Contents?: true

Size: 769 Bytes

Versions: 34

Compression:

Stored size: 769 Bytes

Contents

require 'test_helper'

class GestpayModuleTest < Test::Unit::TestCase
  include ActiveMerchant::Billing::Integrations
  
  def test_notification_method
    Gestpay::Notification.any_instance.expects(:ssl_get).returns('#decryptstring#a=9000000&b=PAY1_UICCODE=242*P1*PAY1_AMOUNT=1234.56*P1*PAY1_TRANSACTIONRESULT=OK*P1*PAY1_BANKTRANSACTIONID=ABCD1234*P1*PAY1_SHOPTRANSACTIONID=1000#/decryptstring#')
    assert_instance_of Gestpay::Notification, Gestpay.notification('a=900000&b=F7DEB36478FD84760F9134F23C922697272D57DE6D4518EB9B4D468B769D9A3A8071B6EB160B35CB412FC1820C7CC12D17B3141855B1ED55468613702A2E213DDE9DE5B0209E13C416448AE833525959F05693172D7F0656')
  end
  
  def test_return_method
    assert_instance_of Gestpay::Return, Gestpay.return('name=cody')
  end
end 

Version data entries

34 entries across 34 versions & 11 rubygems

Version Path
johnideal-activemerchant-1.4.10 test/unit/integrations/gestpay_module_test.rb
johnideal-activemerchant-1.4.11 test/unit/integrations/gestpay_module_test.rb
johnideal-activemerchant-1.4.4 test/unit/integrations/gestpay_module_test.rb
johnideal-activemerchant-1.4.5 test/unit/integrations/gestpay_module_test.rb
johnideal-activemerchant-1.4.6 test/unit/integrations/gestpay_module_test.rb
johnideal-activemerchant-1.4.7 test/unit/integrations/gestpay_module_test.rb
johnideal-activemerchant-1.4.8 test/unit/integrations/gestpay_module_test.rb
mattbauer-activemerchant-1.4.2 test/unit/integrations/gestpay_module_test.rb
tomriley-active_merchant-1.4.2.3 test/unit/integrations/gestpay_module_test.rb
tomriley-active_merchant-1.4.2.4 test/unit/integrations/gestpay_module_test.rb
tomriley-active_merchant-1.4.2.5 test/unit/integrations/gestpay_module_test.rb
tomriley-active_merchant-1.4.2.6 test/unit/integrations/gestpay_module_test.rb
tomriley-active_merchant-1.4.2.7 test/unit/integrations/gestpay_module_test.rb
tomriley-active_merchant-1.4.2.8 test/unit/integrations/gestpay_module_test.rb
tomriley-tomriley-active_merchant-1.4.2.4 test/unit/integrations/gestpay_module_test.rb
goldstar-activemerchant-1.4.2.7 test/unit/integrations/gestpay_module_test.rb
goldstar-activemerchant-1.4.2.6 test/unit/integrations/gestpay_module_test.rb
tomriley-active_merchant-1.4.2.11 test/unit/integrations/gestpay_module_test.rb
tomriley-active_merchant-1.4.2.10 test/unit/integrations/gestpay_module_test.rb
smulube-activemerchant-1.5.1.4 test/unit/integrations/gestpay_module_test.rb