Re: [rspec-users] Specing Layouts

2007-07-14 Thread Daniel N
On 7/15/07, David Chelimsky <[EMAIL PROTECTED]> wrote: On 7/14/07, Daniel N <[EMAIL PROTECTED]> wrote: > Hi, > > I've just started to try and spec my application.html.erb layout as one of > the view specs but it totally barfs. > > I'm guessing that it's due to the yield statements in the layout.

Re: [rspec-users] Specing Layouts

2007-07-14 Thread David Chelimsky
On 7/14/07, Daniel N <[EMAIL PROTECTED]> wrote: > Hi, > > I've just started to try and spec my application.html.erb layout as one of > the view specs but it totally barfs. > > I'm guessing that it's due to the yield statements in the layout. > > Any clues as to how to proceed? Backtrace please? Co

Re: [rspec-users] expect_render twice in views

2007-07-14 Thread Jed Hurt
Works like a charm. Thanks! On 7/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 7/14/07, aslak hellesoy <[EMAIL PROTECTED]> wrote: > > On 7/14/07, Jed Hurt <[EMAIL PROTECTED]> wrote: > > > I found this: > > > > > > controller.expect_render(:partial => 'thing', :collection => things).once >

[rspec-users] Specing Layouts

2007-07-14 Thread Daniel N
Hi, I've just started to try and spec my application.html.erb layout as one of the view specs but it totally barfs. I'm guessing that it's due to the yield statements in the layout. Any clues as to how to proceed? Cheers Daniel ___ rspec-users mailin

Re: [rspec-users] expect_render twice in views

2007-07-14 Thread David Chelimsky
On 7/14/07, aslak hellesoy <[EMAIL PROTECTED]> wrote: > On 7/14/07, Jed Hurt <[EMAIL PROTECTED]> wrote: > > I found this: > > > > controller.expect_render(:partial => 'thing', :collection => things).once > > > > but I am trying to expect_render twice in my view spec: > > > > template.expect_render(

Re: [rspec-users] expect_render twice in views

2007-07-14 Thread aslak hellesoy
On 7/14/07, Jed Hurt <[EMAIL PROTECTED]> wrote: > I found this: > > controller.expect_render(:partial => 'thing', :collection => things).once > > but I am trying to expect_render twice in my view spec: > > template.expect_render(:partial => 'order_details').twice > > > This doesn't work as the temp

[rspec-users] expect_render twice in views

2007-07-14 Thread Jed Hurt
I found this: controller.expect_render(:partial => 'thing', :collection => things).once but I am trying to expect_render twice in my view spec: template.expect_render(:partial => 'order_details').twice This doesn't work as the template.expect_render call seems to be returning an array. Is it p