Thanks David.
I really struggled to get that to catch anything. My colleague Dan
found this, which is working well for me:
http://rubyforge.org/pipermail/rspec-users/2007-May/001816.html
On 4 Sep 2008, at 15:05, David Chelimsky wrote:
On Thu, Sep 4, 2008 at 8:42 AM, Matt Wynne <[EMAIL PROTECTED]> 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@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users