Sha256: 182664a3bb3d17801d77293e57893956f5e3a2b112f55911f3e25ecaaa6bfaab
Contents?: true
Size: 750 Bytes
Versions: 2
Compression:
Stored size: 750 Bytes
Contents
require 'test_helper' class BogusHelperTest < Test::Unit::TestCase include AbtainBilling::Billing::Integrations def setup @helper = Bogus::Helper.new('order-500','cfauser', :amount => 500, :currency => 'CAD') end def test_basic_helper_fields assert_field 'order', 'order-500' assert_field 'account', 'cfauser' assert_field 'amount', '500' assert_field 'currency', 'CAD' end def test_customer_fields @helper.customer :first_name => 'Cody', :last_name => 'Fauser' assert_field 'first_name', 'Cody' assert_field 'last_name', 'Fauser' end def test_setting_unknown_field fields = @helper.fields.dup @helper.space_shuttle :name => 'Rockety' assert_equal fields, @helper.fields end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
abtain_billing-1.03 | test/unit/integrations/helpers/bogus_helper_test.rb |
abtain_billing-1.02 | test/unit/integrations/helpers/bogus_helper_test.rb |