Skip to content
Browse files

Merge branch 'release/0.1.0' into develop

  • Loading branch information...
2 parents bb961b1 + 622426c commit a7623f1193c7cd5af45002a7def77b11dcc71d5f Dirk Kelly committed Oct 18, 2011
Showing with 11 additions and 11 deletions.
  1. +1 −1 lib/active_merchant-anz/version.rb
  2. +9 −9 test/remote/gateways/remote_anz_test.rb
  3. +1 −1 test/unit/gateways/anz_test.rb
View
2 lib/active_merchant-anz/version.rb
@@ -1,5 +1,5 @@
module ActiveMerchant
module Anz
- VERSION = "0.0.1"
+ VERSION = "0.1.0"
end
end
View
18 test/remote/gateways/remote_anz_test.rb
@@ -1,44 +1,44 @@
-require File.dirname(__FILE__) + '/../../test_helper'
+require File.expand_path('../../test_helper',File.dirname(__FILE__))
class AnzTest < Test::Unit::TestCase
def setup
@gateway = AnzGateway.new(fixtures(:anz))
- @credit_card_success = credit_card('5123456789012346',
+ @credit_card_success = credit_card('5123456789012346',
:month => 5,
:year => 2013
)
-
+
@credit_card_fail = credit_card('1234567812345678',
:month => Time.now.month,
:year => Time.now.year
)
-
+
@params = {
:order_id => 'X123F',
:invoice => '10001'
}
end
-
+
def test_invalid_amount
assert response = @gateway.purchase(0, @credit_card_success, @params)
assert_failure response
assert response.test?
end
-
- def test_purchase_success_with_verification_value
+
+ def test_purchase_success_with_verification_value
assert response = @gateway.purchase(100, @credit_card_success, @params)
assert_success response
assert response.test?
end
def test_invalid_expiration_date
- @credit_card_success.year = 2005
+ @credit_card_success.year = 2005
assert response = @gateway.purchase(100, @credit_card_success, @params)
assert_failure response
assert response.test?
end
-
+
def test_purchase_error
assert response = @gateway.purchase(100, @credit_card_fail, @params)
assert_equal false, response.success?
View
2 test/unit/gateways/anz_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../test_helper'
+require File.expand_path('../../test_helper',File.dirname(__FILE__))
class AnzTest < Test::Unit::TestCase
def setup

0 comments on commit a7623f1

Please sign in to comment.
Something went wrong with that request. Please try again.