Created
November 17, 2016 12:51
-
-
Save zmalltalker/2f8292eae56e44e3bcb3727a9ce0bea5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "./test_helper" | |
class PasswordResetTest < ActionDispatch::IntegrationTest | |
with_user("[email protected]", "oldpassword") do |user| | |
assert_response(200) { user.visits_profile_page } | |
assert_response(400) { user.resets_password_to(nil) } | |
assert_response(200) { user_resets_password_to("newpassword") } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment