Replaces find(:first) calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10928 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -45,7 +45,7 @@ class IssueStatusesControllerTest < ActionController::TestCase
|
||||
post :create, :issue_status => {:name => 'New status'}
|
||||
end
|
||||
assert_redirected_to :action => 'index'
|
||||
status = IssueStatus.find(:first, :order => 'id DESC')
|
||||
status = IssueStatus.order('id DESC').first
|
||||
assert_equal 'New status', status.name
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user