diff --git a/app/views/wiki/show.api.rsb b/app/views/wiki/show.api.rsb index 6165a94cc..30c974714 100644 --- a/app/views/wiki/show.api.rsb +++ b/app/views/wiki/show.api.rsb @@ -7,6 +7,7 @@ api.wiki_page do api.version @content.version api.author(:id => @content.author_id, :name => @content.author.name) unless @content.author_id.nil? api.comments @content.comments + api.project(:id => @page.project_id, :name => @page.project.name) unless @page.project.nil? api.created_on @page.created_on api.updated_on @content.updated_on diff --git a/test/integration/api_test/wiki_pages_test.rb b/test/integration/api_test/wiki_pages_test.rb index 0a57b6b9f..aeef34857 100644 --- a/test/integration/api_test/wiki_pages_test.rb +++ b/test/integration/api_test/wiki_pages_test.rb @@ -49,6 +49,7 @@ class Redmine::ApiTest::WikiPagesTest < Redmine::ApiTest::Base assert_select 'text' assert_select 'author' assert_select 'comments' + assert_select 'project[id=1][name="eCookbook"]' assert_select 'created_on' assert_select 'updated_on' end