test/controllers/passwords_controller_test.rb in devise-2.2.6 vs test/controllers/passwords_controller_test.rb in devise-2.2.7
- old
+ new
@@ -5,10 +5,10 @@
include Devise::TestHelpers
def setup
request.env["devise.mapping"] = Devise.mappings[:user]
- @user = create_user
+ @user = create_user.tap(&:confirm!)
@user.send_reset_password_instructions
end
def put_update_with_params
put :update, "user" => {