0001-fix-wiki-pages-rest-api-returns-wrong-comments.patch

Yukinari TOYOTA, 2013-10-31 18:04

Download (1.39 KB)

View differences:

app/views/wiki/show.api.rsb
6 6
  api.text @content.text
7 7
  api.version @content.version
8 8
  api.author(:id => @content.author_id, :name => @content.author.name)
9
  api.comments @page.content.comments
9
  api.comments @content.comments
10 10
  api.created_on @page.created_on
11 11
  api.updated_on @content.updated_on
12 12

  
test/integration/api_test/wiki_pages_test.rb
90 90
      assert_select 'version', :text => '2'
91 91
      assert_select 'text'
92 92
      assert_select 'author'
93
      assert_select 'comments', :text => 'Small update'
93 94
      assert_select 'created_on'
94 95
      assert_select 'updated_on'
95 96
    end
96
-