[rspec-users] Missing template in helper specs with a render

Charlie Bowman charlesmbowman at gmail.com
Sat Jun 6 18:34:17 EDT 2009

I consider an if statement in the view layer a bug. I often need to  
conditionally render a partial and a helper is a great way to  
construct that condition.  Im currently stubing the call to render but  
I only like stub when absolutely necessary.

Sent from my iPhone

On Jun 6, 2009, at 12:00 AM, Hans de Graaff <hans at degraaff.org> wrote:

> On Fri, 2009-06-05 at 22:40 -0500, David Chelimsky wrote:
>> There is no support for rendering in helper specs as of yet. Please
>> file a feature request if you think there should be. I have,
>> personally, never rendered from a helper. Anybody else?
> We do this for example to render a set of unrelated items into a  
> single
> timeline-based view. The helper sorts out the ordering and renders  
> each
> object in it using a specific partial.
> Hans
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list