Skip to content

Instantly share code, notes, and snippets.

@zmalltalker
Created November 17, 2016 12:51
Show Gist options
  • Save zmalltalker/2f8292eae56e44e3bcb3727a9ce0bea5 to your computer and use it in GitHub Desktop.
Save zmalltalker/2f8292eae56e44e3bcb3727a9ce0bea5 to your computer and use it in GitHub Desktop.
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