Project

General

Profile

Feature #40449 ยป 40449.patch

Go MAEDA, 2024-05-24 10:33

View differences:

app/views/issues/show.api.rsb
59 59
        api.user(:id => journal.user_id, :name => journal.user.name) unless journal.user.nil?
60 60
        api.notes journal.notes
61 61
        api.created_on journal.created_on
62
        api.updated_on journal.updated_on
63
        api.updated_by(:id => journal.updated_by.id, :name => journal.updated_by.name) unless journal.updated_by.nil?
62 64
        api.private_notes journal.private_notes
63 65
        api.array :details do
64 66
          journal.visible_details.each do |detail|
test/integration/api_test/issues_test.rb
242 242

  
243 243
    assert_select 'issue journals[type=array]' do
244 244
      assert_select 'journal[id="1"]' do
245
        assert_select 'updated_on', :text => Issue.find(1).journals[0].updated_on.iso8601
246
        assert_select 'updated_by[id="1"][name="Redmine Admin"]'
245 247
        assert_select 'private_notes', :text => 'false'
246 248
        assert_select 'details[type=array]' do
247 249
          assert_select 'detail[name=status_id]' do
    (1-1/1)