diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 03:31:04 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 03:31:04 +0000 |
commit | 07880008098d77cd7233a32b6abf7189e64d4dcd (patch) | |
tree | 8b40c130842f3352c0d5b76a33db5a4fc42b6c42 /test | |
parent | 8a6f4c3880a54be3922354588cbba0750ae301a7 (diff) | |
download | redmine-07880008098d77cd7233a32b6abf7189e64d4dcd.tar.gz redmine-07880008098d77cd7233a32b6abf7189e64d4dcd.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/account_controller_openid_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/account_controller_openid_test.rb b/test/functional/account_controller_openid_test.rb index e6c72c145..b196d9d0e 100644 --- a/test/functional/account_controller_openid_test.rb +++ b/test/functional/account_controller_openid_test.rb @@ -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 |