[rspec-users] specifying a controller's layout

Matt Wynne matt at mattwynne.net
Thu Sep 4 10:24:27 EDT 2008

Thanks David.

I really struggled to get that to catch anything. My colleague Dan  
found this, which is working well for me:

On 4 Sep 2008, at 15:05, David Chelimsky wrote:

> On Thu, Sep 4, 2008 at 8:42 AM, Matt Wynne <matt at mattwynne.net> wrote:
>> I want to spec that a controller uses a particular layout
>> how do I do that?
> Depends on what else is going on, but this is the simplest situation:
>   controller.expect_render(:layout => 'special_layout')
>   get :some_action
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list