summaryrefslogtreecommitdiffstats
path: root/test/functional/account_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-08 04:31:29 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-08 04:31:29 +0000
commit375eca924ced45ccfcff3b8d2523dac9534cd6fe (patch)
tree3574d2b9887ae21d9f85647adf30ba83a94628e2 /test/functional/account_controller_test.rb
parent76110407b70e33d8bf1efdd7f731645a9009048d (diff)
downloadredmine-375eca924ced45ccfcff3b8d2523dac9534cd6fe.tar.gz
redmine-375eca924ced45ccfcff3b8d2523dac9534cd6fe.zip
Rails4: replace deprecated Relation#first with finder options at AccountControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12505 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/account_controller_test.rb')
-rw-r--r--test/functional/account_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb
index 0aae7b596..5423e065b 100644
--- a/test/functional/account_controller_test.rb
+++ b/test/functional/account_controller_test.rb
@@ -185,7 +185,7 @@ class AccountControllerTest < ActionController::TestCase
}
assert_redirected_to '/my/account'
end
- user = User.first(:order => 'id DESC')
+ user = User.order('id DESC').first
assert_equal 'register', user.login
assert_equal 'John', user.firstname
assert_equal 'Doe', user.lastname