Commit 79890fcaba6fba6394a3573a1961c845c8a835bf
1 parent
20c5b0d1
Exists in
master
and in
22 other branches
article-version: versioned_article: using diff to show differences between versions of article
AI2822
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
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 | ... | ... |