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

…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!

Phlip wrote:

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.

On Aug 31, 2:20 am, Brian C. [email protected] wrote:

Phlip wrote:

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.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs