I have a small question about this testing approach. Since I'm not testing a "controller", I don't have the session/params/cookies variables to work with.
My authentication depends on storing session[:user_id] but I can't set it from the integration test since I get that session is not defined.
You could use their free Redis To Go Addon.
Take a look at this article. It's really easy. You'll need a reverse proxy and that's pretty much it
http://blog.phusion.nl/2010/09/21/phusion-passenger-running-multiple-ruby-versions/
Can you post your PasswordResetsController? It seems that it has no "index" action.
Maybe you misspelled it, happens to me all the time :-S
Can't you use Active Record's built in I18n API here?
Take a look at this:
https://github.com/svenfuchs/rails-i18n/blob/master/rails/rails3/active_record.yml
What's your problem? I'm using Rails 3.1 rc5 and it works perfectly.
What error do you get?
I'm getting
undefined method 'session' for ApplicationController:Class
EDIT: I managed to get this working by stubbing the
current_user
methodApplicationController.stub(:current_user).and_return(user)
Hi Ryan,
I have a small question about this testing approach. Since I'm not testing a "controller", I don't have the session/params/cookies variables to work with.
My authentication depends on storing session[:user_id] but I can't set it from the integration test since I get that session is not defined.
How can I get around that?
Thanks!
This could be really great when using it with Tolk (https://github.com/dhh/tolk).
Thanks a lot!
I still miss Searchlogic's field_like_any it was kind of useful for some autocomplete stuff =/