Defect #15235 ยป 0001-fix-wiki-pages-rest-api-returns-wrong-comments.patch
| app/views/wiki/show.api.rsb | ||
|---|---|---|
|
api.text @content.text
|
||
|
api.version @content.version
|
||
|
api.author(:id => @content.author_id, :name => @content.author.name)
|
||
|
api.comments @page.content.comments
|
||
|
api.comments @content.comments
|
||
|
api.created_on @page.created_on
|
||
|
api.updated_on @content.updated_on
|
||
| test/integration/api_test/wiki_pages_test.rb | ||
|---|---|---|
|
assert_select 'version', :text => '2'
|
||
|
assert_select 'text'
|
||
|
assert_select 'author'
|
||
|
assert_select 'comments', :text => 'Small update'
|
||
|
assert_select 'created_on'
|
||
|
assert_select 'updated_on'
|
||
|
end
|
||