[rspec-users] can't access helper methods for model testing

Chris Olsen lists at ruby-forum.com
Fri Dec 14 01:43:46 EST 2007


>> What am I missing?  Are these helpers only for controller tests?
> 
> Rails helpers are there for views and controllers, not for models.
> 
> If you want an RSpec helper, something you use to set up state for
> your examples, you can write a module and include it in the example
> groups - but that is a horse of a different color.
> 
> HTH,
> David

That makes sense.

Thanks for the help.
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list