summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/integration/api_test/time_entries_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/api_test/time_entries_test.rb b/test/integration/api_test/time_entries_test.rb
index 6d77f0c81..470d94ad5 100644
--- a/test/integration/api_test/time_entries_test.rb
+++ b/test/integration/api_test/time_entries_test.rb
@@ -62,7 +62,7 @@ class Redmine::ApiTest::TimeEntriesTest < Redmine::ApiTest::Base
assert_response :created
assert_equal 'application/xml', @response.content_type
- entry = TimeEntry.first(:order => 'id DESC')
+ entry = TimeEntry.order('id DESC').first
assert_equal 'jsmith', entry.user.login
assert_equal Issue.find(1), entry.issue
assert_equal Project.find(1), entry.project
@@ -82,7 +82,7 @@ class Redmine::ApiTest::TimeEntriesTest < Redmine::ApiTest::Base
assert_response :created
assert_equal 'application/xml', @response.content_type
- entry = TimeEntry.first(:order => 'id DESC')
+ entry = TimeEntry.order('id DESC').first
assert_equal 'accepted', entry.custom_field_value(field)
end
@@ -93,7 +93,7 @@ class Redmine::ApiTest::TimeEntriesTest < Redmine::ApiTest::Base
assert_response :created
assert_equal 'application/xml', @response.content_type
- entry = TimeEntry.first(:order => 'id DESC')
+ entry = TimeEntry.order('id DESC').first
assert_equal 'jsmith', entry.user.login
assert_nil entry.issue
assert_equal Project.find(1), entry.project