Sha256: fbd1266bbd64e0d8be93a85dca892a4a28f1b6725e7b318446704eeb358b8e3c

Contents?: true

Size: 443 Bytes

Versions: 34

Compression:

Stored size: 443 Bytes

Contents

require 'test_helper'

class HiTrustHelperTest < Test::Unit::TestCase
  include ActiveMerchant::Billing::Integrations
  
  def setup
    @helper = HiTrust::Helper.new('order-500','cody@example.com', :amount => 500, :currency => 'USD')
  end
 
  def test_basic_helper_fields
    assert_field 'storeid', 'cody@example.com'
    assert_field 'amount', '500'
    assert_field 'ordernumber', 'order-500'
    assert_field 'currency', 'USD'
  end
end

Version data entries

34 entries across 34 versions & 11 rubygems

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