Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: murdochuniversity/activemerchant-anz-gateway
base: c274eb99ae
...
head fork: murdochuniversity/activemerchant-anz-gateway
compare: 622426ce13
Checking mergeability… Don't worry, you can still create the pull request.
  • 6 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
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

No commit comments for this range

Something went wrong with that request. Please try again.