Commit 79890fcaba6fba6394a3573a1961c845c8a835bf

Authored by Junior Silva
1 parent 20c5b0d1

article-version: versioned_article: using diff to show differences between versions of article

AI2822
app/controllers/public/content_viewer_controller.rb
... ... @@ -120,7 +120,7 @@ class ContentViewerController < ApplicationController
120 120 end
121 121 end
122 122  
123   - def self.versioning_articles(string1, string2)
  123 + def versioning_articles(string1, string2)
124 124 Diffy::Diff.new('string1', 'string2').to_s(:html)
125 125 end
126 126  
... ...
test/functional/content_viewer_controller_test.rb
... ... @@ -1211,7 +1211,7 @@ class ContentViewerControllerTest < ActionController::TestCase
1211 1211 :published => true,
1212 1212 :body => "<p>That is a <strong>bold</strong> statement right there!</p>"
1213 1213 )
1214   - ContentViewerController.versioning_articles('Post1','Post2')
  1214 + @controller.versioning_articles('Post1','Post2')
1215 1215 end
1216 1216  
1217 1217 should 'not display comments marked as spam' do
... ...