Re: [rspec-users] rails rspec silently failing

2008-02-06 Thread Will Schenk
Ok I think I've figured out the command that makes rspec blow up. I'm creating the mock object like this: def prepare_order_mock $GCHECKOUT_FRONTEND = mock "gcheckout" @co_cmd_mock = mock "checkout_command" @shopping_cart = mock "shopping cart" @private_data = nil $

Re: [rspec-users] rails rspec silently failing

2008-02-05 Thread Hans de Graaff
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

Re: [rspec-users] rails rspec silently failing

2008-02-05 Thread Will Schenk
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. Either way the code runs all the way through the action met

Re: [rspec-users] rails rspec silently failing

2008-02-05 Thread Corey Haines
That seems more like rspec isn't even finding it. What is the file name? Is it in a location that rspec is going to look for it? -Corey On Feb 5, 2008 4:58 PM, Will Schenk <[EMAIL PROTECTED]> wrote: > I've been beating my head against this for a couple of hours now, and > I'm a bit frustrated, s

[rspec-users] rails rspec silently failing

2008-02-05 Thread Will Schenk
I've been beating my head against this for a couple of hours now, and I'm a bit frustrated, so I apologize in advance. I'm trying to use rspec to test an order processing system, which uses google checkout. The idea was to have a couple of orders in the database in various stages, and hit t