Add updated_on and updated_by fields to Issues API journal response (#40449).

Contributed by Thomas Hoffmann (@ThomasHo).


git-svn-id: https://svn.redmine.org/redmine/trunk@22846 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2024-05-27 07:41:57 +00:00
parent c9fda88a40
commit a4e7d34cb7
2 changed files with 4 additions and 0 deletions

View File

@@ -242,6 +242,8 @@ 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_by[id="1"][name="Redmine Admin"]'
assert_select 'private_notes', :text => 'false'
assert_select 'details[type=array]' do
assert_select 'detail[name=status_id]' do