summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/api_test/issues_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb
index 84abe70ed..02840b2ef 100644
--- a/test/integration/api_test/issues_test.rb
+++ b/test/integration/api_test/issues_test.rb
@@ -242,7 +242,7 @@ class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base
assert_select 'issue journals[type=array]' do
assert_select 'journal[id="1"]' do
- assert_select 'updated_on', :text => Issue.find(1).journals[0].updated_on.iso8601
+ assert_select 'updated_on', :text => Issue.find(1).journals.order(:id)[0].updated_on.iso8601
assert_select 'updated_by[id="1"][name="Redmine Admin"]'
assert_select 'private_notes', :text => 'false'
assert_select 'details[type=array]' do