Sha256: 16f9b94db7913a48aac9714203286ff7b34202a0f6b3e2dd714d7cbafcc707f3

Contents?: true

Size: 478 Bytes

Versions: 10

Compression:

Stored size: 478 Bytes

Contents

require File.dirname(__FILE__) + '/../../../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

10 entries across 10 versions & 4 rubygems

Version Path
martinstannard-activemerchant-0.1.0 test/unit/integrations/helpers/hi_trust_helper_test.rb
seamusabshere-active_merchant-1.4.2.1 test/unit/integrations/helpers/hi_trust_helper_test.rb
seamusabshere-active_merchant-1.4.2.3 test/unit/integrations/helpers/hi_trust_helper_test.rb
activemerchant-1.3.2 test/unit/integrations/helpers/hi_trust_helper_test.rb
activemerchant-1.4.0 test/unit/integrations/helpers/hi_trust_helper_test.rb
activemerchant-1.3.0 test/unit/integrations/helpers/hi_trust_helper_test.rb
activemerchant-1.4.1 test/unit/integrations/helpers/hi_trust_helper_test.rb
activemerchant-1.3.1 test/unit/integrations/helpers/hi_trust_helper_test.rb
activemerchant-1.4.2 test/unit/integrations/helpers/hi_trust_helper_test.rb
spree-0.2.0 vendor/plugins/active_merchant/test/unit/integrations/helpers/hi_trust_helper_test.rb