summaryrefslogtreecommitdiffstats
path: root/test/functional/issue_statuses_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/issue_statuses_controller_test.rb')
-rw-r--r--test/functional/issue_statuses_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/issue_statuses_controller_test.rb b/test/functional/issue_statuses_controller_test.rb
index bfed246b6..1662413e0 100644
--- a/test/functional/issue_statuses_controller_test.rb
+++ b/test/functional/issue_statuses_controller_test.rb
@@ -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