# The nice new braintree\_orange

**URL:** <https://www.ruby-forum.com/t/the-nice-new-braintree-orange/194133>\
**Category:** Ruby\
**Created:** [August 30, 2010, 11:16pm UTC](https://www.ruby-forum.com/t/the-nice-new-braintree-orange/194133 "2010-08-30T23:16:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [August 30, 2010, 11:16pm UTC](https://www.ruby-forum.com/t/the-nice-new-braintree-orange/194133/1 "2010-08-30T23:16:00Z")

</div>

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
