Replaces find(:first/:all) calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10931 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -45,7 +45,7 @@ class AccountTest < ActionController::IntegrationTest
|
||||
# User logs in with 'autologin' checked
|
||||
post '/login', :username => user.login, :password => 'admin', :autologin => 1
|
||||
assert_redirected_to '/my/page'
|
||||
token = Token.find :first
|
||||
token = Token.first
|
||||
assert_not_nil token
|
||||
assert_equal user, token.user
|
||||
assert_equal 'autologin', token.action
|
||||
|
||||
Reference in New Issue
Block a user