Hey guys. One of my models uses a Rails URL helper. In IRB, the method 
works. However, when I run the specs for the method, the URL helper doesn't 
exist.

The only solution I've found is to include 
Rails.application.routes.url_helpers in both the model and the example 
group. Obviously, that's not ideal, because it's only necessary for the 
specs to work. Is there any other solution?

https://gist.github.com/1275799

Thanks,
Nick
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to