Permalink
Browse files

Add spec coverage for previous commitw

  • Loading branch information...
Jim Remsik Jim Remsik
Jim Remsik authored and Jim Remsik committed Apr 17, 2011
1 parent cfc805f commit 7d017bdaa31dfcb841f1e531d0417da79543d0a4
Showing with 14 additions and 0 deletions.
  1. +14 −0 test/remote/gateways/remote_payleap_test.rb
@@ -53,6 +53,20 @@ def test_unsuccessful_purchase
# assert_equal 'REPLACE WITH FAILED PURCHASE MESSAGE', response.message
end
+ def test_handle_potential_octal_values
+ credit_card = ActiveMerchant::Billing::CreditCard.new(
+ :type => "american_express",
+ :number => "374255312721002",
+ :verification_value => "123",
+ :month => "08",
+ :year => "2012",
+ :first_name => "John",
+ :last_name => "Doe"
+ )
+ assert response = @gateway.purchase(@amount, credit_card, @options)
+ assert_success response
+ end
+
def test_custom_login_and_password
gateway = PayLeapGateway.new(
:login => '',

0 comments on commit 7d017bd

Please sign in to comment.