On Tue, 2008-02-05 at 23:50 -0500, Will Schenk wrote: > This is both running the file directly or using script/spec. If I > leave the spec file as is, and I comment out a line > @order.send_order_to_google_checkout in the _controller_ then it runs > fine, i.e. it gets to the fail statement.
Since you don't include the actual controller code it's a bit hard to help out here, but it's better form to just mock this code in your controller spec. You can then vary the different responses from the google checkout and see if your controller handles them correctly. The actual interaction with google checkout should be described with examples in the order_spec.rb file. Right now you are testing the whole stack and it becomes very hard to track down what is going wrong exactly. Kind regards, Hans
signature.asc
Description: This is a digitally signed message part
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users