[rspec-users] Is testing output within content_for possible?

Zach Dennis zach.dennis at gmail.com
Sun Apr 20 16:09:27 EDT 2008


You can also render a testing layout which yields the content.
IE: render "foo", :layout => "testing"

In layouts/testing.html.erb:

   <%= yield :sidebar %>


Zach


On Sun, Apr 20, 2008 at 1:00 PM, Chris Olsen <lists at ruby-forum.com> wrote:

> Bryan Ray wrote:
> > This might be of some use:
> >
> > http://rubyforge.org/pipermail/rspec-users/2007-June/001954.html
> >
>
> That should do it!
>
> Thanks Bryan
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



-- 
Zach Dennis
http://www.continuousthinking.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080420/c0b89ee6/attachment.html 


More information about the rspec-users mailing list