P
Phlip
....inside the otherwise truly awesome ActiveGateway:
def test_successful_purchase
@gateway.expectsssl_post).returns(successful_purchase_response)
assert response = @gateway.authorize(@amount, @credit_card,
@options)
assert_instance_of Response, response
assert_success response
assert_equal '510695343', response.authorization
end
This is not a question; just a tip that I hope someone can bubble up
to the maintainers.
Note the discrepancy between the test case name and the @gateway.
method that actually gets called! C-:
( Oh, BTW, I made an example of other aspects of AG's test suite here:
http://broadcast.oreilly.com/2010/05/abstract-tests.html )
Happy coding, y'all!
def test_successful_purchase
@gateway.expectsssl_post).returns(successful_purchase_response)
assert response = @gateway.authorize(@amount, @credit_card,
@options)
assert_instance_of Response, response
assert_success response
assert_equal '510695343', response.authorization
end
This is not a question; just a tip that I hope someone can bubble up
to the maintainers.
Note the discrepancy between the test case name and the @gateway.
method that actually gets called! C-:
( Oh, BTW, I made an example of other aspects of AG's test suite here:
http://broadcast.oreilly.com/2010/05/abstract-tests.html )
Happy coding, y'all!