projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d8dc64
)
Use a pending user for testing password resets.
author
Andy Allan
<git@gravitystorm.co.uk>
Wed, 15 Mar 2017 14:22:04 +0000
(14:22 +0000)
committer
Andy Allan
<git@gravitystorm.co.uk>
Wed, 15 Mar 2017 14:22:04 +0000
(14:22 +0000)
test/controllers/user_controller_test.rb
patch
|
blob
|
history
diff --git
a/test/controllers/user_controller_test.rb
b/test/controllers/user_controller_test.rb
index 0e21f1d6729f2fd26c2632e3ef1289093d4e4b5f..3232b9e2ed50e293ff6ba9b1274c214b252e7505 100644
(file)
--- a/
test/controllers/user_controller_test.rb
+++ b/
test/controllers/user_controller_test.rb
@@
-733,7
+733,7
@@
class UserControllerTest < ActionController::TestCase
end
def test_reset_password
- user = create(:user)
+ user = create(:user
, :pending
)
# Test a request with no token
get :reset_password
assert_response :bad_request