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:
parent
76110407b7
commit
375eca924c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue