]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated Relation#first with finder options at AccountControllerOpe...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 8 Jan 2014 03:31:04 +0000 (03:31 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 8 Jan 2014 03:31:04 +0000 (03:31 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12501 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/account_controller_openid_test.rb

index e6c72c145f725a609eda3bf28bb3816fddb43600..b196d9d0e92a99b7dbeefbf5a0d8a16a968fbcb3 100644 (file)
@@ -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