Sha256: c118bc8af1fc4950aa2cdceb0036eecce506ef2af86273750faf6e37bf5de84b

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

Stored size: 442 Bytes

Contents

require 'test_helper'

class HiTrustHelperTest < Test::Unit::TestCase
  include AbtainBilling::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

2 entries across 2 versions & 1 rubygems

Version Path
abtain_billing-1.03 test/unit/integrations/helpers/hi_trust_helper_test.rb
abtain_billing-1.02 test/unit/integrations/helpers/hi_trust_helper_test.rb