[rspec-users] Rails Helpers

Dylan Egan dylanegan at gmail.com
Thu Mar 15 00:26:02 EDT 2007


Hi,

Just trying to spec out my helpers and so far its been working well enough.

I now have a helper as follows

FooHelper
  def a
     b
  end

  def b
  end
end

But for some reason, probably something really simple, I cant work out how
to spec that a calls b.

Ive looked at all the variables that get set up and tried playing with them,
but no luck.

Maybe someone can shed some light on this for me.

Apologies in advance if this is really simple and I am just missing it
completely.

Regards,

Dylan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070315/431473f7/attachment.html 


More information about the rspec-users mailing list