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
smulube-activemerchant-1.5.1.3 test/unit/integrations/helpers/hi_trust_helper_test.rb
smulube-activemerchant-1.5.1.2 test/unit/integrations/helpers/hi_trust_helper_test.rb
ghazel-activemerchant-1.4.2 test/unit/integrations/helpers/hi_trust_helper_test.rb
activemerchant-est-1.4.2.6 test/unit/integrations/helpers/hi_trust_helper_test.rb
activemerchant-1.5.0 test/unit/integrations/helpers/hi_trust_helper_test.rb
patmaddox-activemerchant-1.4.2.6 test/unit/integrations/helpers/hi_trust_helper_test.rb
patmaddox-activemerchant-1.4.2.5 test/unit/integrations/helpers/hi_trust_helper_test.rb
patmaddox-activemerchant-1.4.2.4 test/unit/integrations/helpers/hi_trust_helper_test.rb
patmaddox-activemerchant-1.4.2.3 test/unit/integrations/helpers/hi_trust_helper_test.rb
patmaddox-activemerchant-1.4.2.2 test/unit/integrations/helpers/hi_trust_helper_test.rb
patmaddox-activemerchant-1.4.2.1 test/unit/integrations/helpers/hi_trust_helper_test.rb
activemerchant-est-1.4.2.5 test/unit/integrations/helpers/hi_trust_helper_test.rb
patmaddox-activemerchant-1.4.2 test/unit/integrations/helpers/hi_trust_helper_test.rb
abtain_billing-1.0 test/unit/integrations/helpers/hi_trust_helper_test.rb