Feature #44353 ยป 0001-Includes-project-in-wiki-pages-API-response-of-the-i.patch
| app/views/wiki/index.api.rsb | ||
|---|---|---|
|
api.parent :title => page.parent.title
|
||
|
end
|
||
|
api.version page.version
|
||
|
api.project(:id => page.project_id, :name => page.project.name) unless page.project.nil?
|
||
|
api.created_on page.created_on
|
||
|
api.updated_on page.updated_on
|
||
|
end
|
||
| test/integration/api_test/wiki_pages_test.rb | ||
|---|---|---|
|
assert_select 'wiki_page' do
|
||
|
assert_select 'title', :text => 'CookBook_documentation'
|
||
|
assert_select 'version', :text => '3'
|
||
|
assert_select 'project[id=1][name="eCookbook"]'
|
||
|
assert_select 'created_on'
|
||
|
assert_select 'updated_on'
|
||
|
end
|
||