[rspec-users] specifying a controller's layout

David Chelimsky dchelimsky at gmail.com
Thu Sep 4 10:05:05 EDT 2008


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


More information about the rspec-users mailing list