Okay, I'll try that. Thanks.
I don't really like all the view stuff in the controllers, and I intend to
eventually move them into RJS, but, while I'm learning, I'm keeping it
there. :)
-Corey
On Feb 5, 2008 9:30 PM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On Feb 5, 2008 6:42 PM, Corey Hain
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
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.
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
On Feb 4, 2008 9:44 PM, Brian Rowe <[EMAIL PROTECTED]> wrote:
> I'm looking for a working example of a put :update on a controller. The
> documentation online avoids the update function.
>
> Any help pointing to this example would be great. Trying to get to 100%
> coverage...can't make it without
I'm looking for a working example of a put :update on a controller. The
documentation online avoids the update function.
Any help pointing to this example would be great. Trying to get to 100%
coverage...can't make it without update :)
Brian
___
rspec