Wiki Pages REST API with version returns wrong comments (#15235).
Patch by Yukinari TOYOTA. git-svn-id: http://svn.redmine.org/redmine/trunk@12245 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2e1f80dcde
commit
71b43ea1c7
|
@ -6,7 +6,7 @@ api.wiki_page do
|
||||||
api.text @content.text
|
api.text @content.text
|
||||||
api.version @content.version
|
api.version @content.version
|
||||||
api.author(:id => @content.author_id, :name => @content.author.name)
|
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.created_on @page.created_on
|
||||||
api.updated_on @content.updated_on
|
api.updated_on @content.updated_on
|
||||||
|
|
||||||
|
|
|
@ -90,6 +90,7 @@ class Redmine::ApiTest::WikiPagesTest < Redmine::ApiTest::Base
|
||||||
assert_select 'version', :text => '2'
|
assert_select 'version', :text => '2'
|
||||||
assert_select 'text'
|
assert_select 'text'
|
||||||
assert_select 'author'
|
assert_select 'author'
|
||||||
|
assert_select 'comments', :text => 'Small update'
|
||||||
assert_select 'created_on'
|
assert_select 'created_on'
|
||||||
assert_select 'updated_on'
|
assert_select 'updated_on'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue