Project

General

Profile

Feature #44353 ยป 0001-Includes-project-in-wiki-pages-API-response-of-the-i.patch

Go MAEDA, 2026-08-20 05:05

View differences:

app/views/wiki/index.api.rsb
6 6
        api.parent :title => page.parent.title
7 7
      end
8 8
      api.version page.version
9
      api.project(:id => page.project_id, :name => page.project.name) unless page.project.nil?
9 10
      api.created_on page.created_on
10 11
      api.updated_on page.updated_on
11 12
    end
test/integration/api_test/wiki_pages_test.rb
29 29
      assert_select 'wiki_page' do
30 30
        assert_select 'title', :text => 'CookBook_documentation'
31 31
        assert_select 'version', :text => '3'
32
        assert_select 'project[id=1][name="eCookbook"]'
32 33
        assert_select 'created_on'
33 34
        assert_select 'updated_on'
34 35
      end
    (1-1/1)