On 16-apr-2008, at 13:57, Andy Croll wrote:
> Is there a way to specify which layout an action should use in a
> controller?

Off the top of my head, not tested:

describe MyController do
   it "should use the foo layout" do
     MyController.should_receive(:layout).with("foo")
     load("app/controllers/my_controller")
   end
end

but I'm sure there's a more BDD way to do it (TIMTOWTDI goes BDDWTDI ?).

greetz,
bartz
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to