Here is part of the integration test that I have:
user = User.first assert !user.is_active? get confirm_email_user_url(user),:confirmId => user.mail_confirmation_hash assert_equal response.status,200
I spent the last hour debugging this :). In my initial version, I did not reinitialize the user after the confirm_email_user_url file was reached, and the state is always inactive , even if the user was activated.
How do I know if I should "reload" (without having a better name) my model object? What should I name to do this?
ruby ruby-on-rails activerecord testing
Geo Apr 01 2018-11-11T00: 00Z
source share