On Tue, Aug 24, 2010 at 5:19 AM, Alex Pressberg wrote:
> Yes! We do use render in helpers to a great extent and are bitten by the
> "missing template in view path" error too. Any workarounds? Can the view
> path be easily fixed for helper specs in Rspec 1.3?
> Does Rspec 2 already support this?
>
Yes! We do use render in helpers to a great extent and are bitten by the
"missing template in view path" error too. Any workarounds? Can the view
path be easily fixed for helper specs in Rspec 1.3?
Does Rspec 2 already support this?
Cheers, Alex
David Chelimsky wrote:
> On Thu, Jun 4, 2009 at
Sent from my iPhone
On Jun 7, 2009, at 8:54 AM, Rick DeNatale
wrote:
On Sun, Jun 7, 2009 at 4:24 AM, Charlie Bowman> wrote:
On Jun 6, 2009, at 10:02 PM, Zach Dennis
wrote:
For example, if I need to display a piece of information for an
admin,
but not a normal user then I have no pr
On Sun, Jun 7, 2009 at 4:24 AM, Charlie Bowman wrote:
> On Jun 6, 2009, at 10:02 PM, Zach Dennis wrote:
>> For example, if I need to display a piece of information for an admin,
>> but not a normal user then I have no problem doing the "if
>> current_user.admin?" check in a view:
>>
>> <% if cur
Sent from my iPhone
On Jun 6, 2009, at 10:02 PM, Zach Dennis wrote:
On Sat, Jun 6, 2009 at 6:34 PM, Charlie Bowman> wrote:
I consider an if statement in the view layer a bug.
Perhaps we can consider it a possible code smell? It's not really a
bug unless it's producing incorrect or unexpect
On Sat, Jun 6, 2009 at 6:34 PM, Charlie Bowman wrote:
> I consider an if statement in the view layer a bug.
Perhaps we can consider it a possible code smell? It's not really a
bug unless it's producing incorrect or unexpected result in the
application's behaviour.
> I often need to
> conditional
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
On 6 Jun 2009, at 04:40, David Chelimsky wrote:
On Thu, Jun 4, 2009 at 8:41 PM, Charlie Bowman > wrote:
I have a helper method that does a "render :partial". The method
works fine
within the app (Rails 2.3.2). In rspec (1.2.6) I get an error
("Missing
template /comments/_comment.erb in vi
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 unrela
On Thu, Jun 4, 2009 at 8:41 PM, Charlie Bowman wrote:
> I have a helper method that does a "render :partial". The method works fine
> within the app (Rails 2.3.2). In rspec (1.2.6) I get an error ("Missing
> template /comments/_comment.erb in view path"
> It seems that rspec when running helper
10 matches
Mail list logo