For reasons beyond my control, I cannot use RSpec for testing in my current project. I am trying to check out the Devise Reset Password, and I cannot come up with something that works.
Here is what I still have:
require 'test_helper' class ResetPasswordTest < ActionDispatch::IntegrationTest setup do @user = users(:example) end test "reset user password" do old_password = @user.encrypted_password puts @user.inspect
I added a few comments above where things do not seem to work. Does anyone have an idea or idea on how best to test this?
ruby-on-rails ruby-on-rails-4 devise minitest
justindao
source share