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
This commit is contained in:
Toshi MARUYAMA 2014-01-08 04:31:29 +00:00
parent 76110407b7
commit 375eca924c
1 changed files with 1 additions and 1 deletions

View File

@ -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