From a679d19709cfbb935b18b66b779ac315b2d3f845 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 25 Oct 2012 21:17:46 +0000 Subject: [PATCH] Adds last edit comments on the wiki page (#7082). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10719 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/wiki/show.api.rsb | 1 + test/integration/api_test/wiki_pages_test.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/views/wiki/show.api.rsb b/app/views/wiki/show.api.rsb index 2f0690187..c35316104 100644 --- a/app/views/wiki/show.api.rsb +++ b/app/views/wiki/show.api.rsb @@ -6,6 +6,7 @@ api.wiki_page do api.text @content.text api.version @content.version api.author(:id => @content.author_id, :name => @content.author.name) + api.comments @page.content.comments 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 ac4f132e0..f9ec2bfe7 100644 --- a/test/integration/api_test/wiki_pages_test.rb +++ b/test/integration/api_test/wiki_pages_test.rb @@ -54,6 +54,7 @@ class ApiTest::WikiPagesTest < ActionController::IntegrationTest assert_select 'version', :text => '3' assert_select 'text' assert_select 'author' + assert_select 'comments' assert_select 'created_on' assert_select 'updated_on' end