Re: [rspec-users] Testing Layout

2008-04-16 Thread Andy Croll
> Perhaps you should try giving the full path to load, eg. load > (RAILS_ROOT + "/app/controllers/my_controller.rb"). That seemed to do it... was perhaps a typo originally. My bad. Thanks. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mail

Re: [rspec-users] Testing Layout

2008-04-16 Thread Bart Zonneveld
On 16-apr-2008, at 16:53, Andy Croll wrote: > Bart Zonneveld wrote: >> 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

Re: [rspec-users] Testing Layout

2008-04-16 Thread Andy Croll
Bart Zonneveld wrote: > 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(:la

Re: [rspec-users] Testing Layout

2008-04-16 Thread Bart Zonneveld
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/cont

[rspec-users] Testing Layout

2008-04-16 Thread Andy Croll
Is there a way to specify which layout an action should use in a controller? Andy -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users