> 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
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
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
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