spree/spree — pull request #743 by complistic-gaff (2011-11-09 09:54:46+00:00)
Title: Spec to make a test order aganst the eWay testing API.

Hi Guys,

I was just writing some tests for my app and thought this one might be good in core.
(You can never have enough tests right?)

This tests the order payment as if a user submitted the payment information via the checkout controller using the eWay Gateway.

For example:
I'm letting spree create the `payment` and `creditcard` models using the `@order.update_attributes`.
Then using `@order.next!` to process the payments as if it was done from the checkout.

It takes about 4 seconds on my old P4 2.6ghz

You don't have to take it if you don't want... but free code is always cheap :)