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 <[email protected]> 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
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users