[rspec-users] How do I include routing path helpers?

Evgeniy Dolzhenko dolzenko at gmail.com
Fri Nov 12 15:56:30 EST 2010

Not sure on how to do that with Steak but you must be looking to
include Rails.application.routes.url_helpers
somewhere, with vanilla RSpec it would be

describes 'included helpers' do
  include Rails.application.routes.url_helpers

On Fri, Nov 12, 2010 at 8:42 PM, Steve <vertebrate at gmail.com> wrote:
> I'm writing some Steak acceptance tests in Rspec2 for my Rails3 app
> and I can't access various route helpers(members_path,
> new_member_path, etc...) in my specs, and can't figure out how to
> include them. I'm sure it's probably a simple config setting. Does
> anyone know what I need to do?
> Thanks,
> Steve
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list