Rails4: replace deprecated Relation#first with finder options at AccountControllerOpenidTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12501 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
8a6f4c3880
commit
0788000809
|
@ -157,7 +157,7 @@ class AccountControllerOpenidTest < ActionController::TestCase
|
|||
assert_response 302
|
||||
end
|
||||
|
||||
user = User.first(:order => 'id DESC')
|
||||
user = User.order('id DESC').first
|
||||
assert_equal 'http://openid.example.com/good_blank_user', user.identity_url
|
||||
assert user.hashed_password.blank?, "Hashed password was #{user.hashed_password}"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue