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] rspec - rails put :update any examples

2008-02-05 Thread David Chelimsky
On Feb 5, 2008 6:42 PM, Corey Haines <[EMAIL PROTECTED]> wrote: > David, I tried doing this, and I get an exception. Here's a pastie of the > error, controller, controller_spec: http://pastie.caboo.se/148021 You've got page[:coupon_list], not just page. So what you need to mock is this: page = mo

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

Re: [rspec-users] rspec - rails put :update any examples

2008-02-05 Thread Corey Haines
And, of course, here are my versions: Ruby 1.8.6 Rails 2.0.2 Zentest 3.8 RSpec (I believe 1.1.2) On Feb 5, 2008 7:42 PM, Corey Haines <[EMAIL PROTECTED]> wrote: > David, I tried doing this, and I get an exception. Here's a pastie of the > error, controller, controller_spec: http://pastie.caboo.

Re: [rspec-users] rspec - rails put :update any examples

2008-02-05 Thread Corey Haines
David, I tried doing this, and I get an exception. Here's a pastie of the error, controller, controller_spec: http://pastie.caboo.se/148021 On Feb 5, 2008 2:02 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > it "should replace foo with bar partial" do > page = mock("page") > page.should_receiv

[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

Re: [rspec-users] DRb does not activate using options file

2008-02-05 Thread Edward Ocampo-gooding
On Jan 30, 2008 7:43 PM, Luis Lavena <[EMAIL PROTECTED]> wrote: > Hello List, > > For a small project I've been using 'ruby script/spec -X spec' to > execute my specs. > > Now that I added ZenTest on it, found that the test takes longer to > run due the complete load of test environment. > > Since

Re: [rspec-users] OT local version control?

2008-02-05 Thread Corey Haines
Thanks, Dan, I'll check that out. -Corey On Feb 5, 2008 5:19 AM, Dan North <[EMAIL PROTECTED]> wrote: > Hi Corey. > > I recently discovered a rather excellent online book: > http://hgbook.red-bean.com/ > > It's about mercurial but it's a) largely scm-agnostic and b) really well > written, with s

Re: [rspec-users] Spec::Runner.register_at_exit_hook in RSpec 1.1.3

2008-02-05 Thread Steve Hayes
David Chelimsky wrote: > On Feb 4, 2008 11:15 PM, Steve Hayes <[EMAIL PROTECTED]> wrote: >> In RSpec 1.1.3 this method is invoked from >> Spec::Example::ExampleGroupMethods.inherited, but it no longer exists. > > It most certainly does. In fact, it's new in 1.1.3, so neither the > method nor the c

Re: [rspec-users] OT local version control?

2008-02-05 Thread Dan North
Hi Corey. I recently discovered a rather excellent online book: http://hgbook.red-bean.com/ It's about mercurial but it's a) largely scm-agnostic and b) really well written, with some useful diagrams about how changesets work in the small and collaboration models in the large (i.e. exactly what y