The nice new braintree_orange_test.rb is confused about what"purchases" are...

P

Phlip

....inside the otherwise truly awesome ActiveGateway:

def test_successful_purchase
@gateway.expects:)ssl_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!
 
B

Brian Candler

Phlip said:
This is not a question; just a tip that I hope someone can bubble up
to the maintainers.

If this is a Rails-related tip, it would find the most appropriate
audience on a Rails mailing list.

This mailing list is for Ruby, the programming language; Rails is an
application which just happens to be written *in* Ruby.

Regards,

Brian.
 
P

Phlip

If this is a Rails-related tip, it would find the most appropriate
audience on a Rails mailing list.

This mailing list is for Ruby, the programming language; Rails is an
application which just happens to be written *in* Ruby.

Neither is the Rails mailing list correct for a plugin, duh.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top