Bart Zonneveld wrote:
> On 16-okt-2008, at 8:50, Dave Gamphani Phiri wrote:
> 
>> Here, I was trying to test if the out put displays with a layouts/menu
>> template.
>> Can somebody help on how you test the render(:layout => "layouts/
>> menu") statement in a controller or this is supposed to be tested in
>> the view?
> 
> Try this:
> 
> render(:layout => "layouts/menu") and return
> 
> cheers,
> bartz

Thanks Bartz, I used your input to try a controller line of
    format.html { render :action => "show" }
and rspec of
    response.should render_template( :(controller name) => "/show")

I tried it with and without the "and return" and both worked.

Harry


-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to