diff --git a/app/controllers/public/content_viewer_controller.rb b/app/controllers/public/content_viewer_controller.rb index 8eb292a..59938a1 100644 --- a/app/controllers/public/content_viewer_controller.rb +++ b/app/controllers/public/content_viewer_controller.rb @@ -120,7 +120,7 @@ class ContentViewerController < ApplicationController end end - def self.versioning_articles(string1, string2) + def versioning_articles(string1, string2) Diffy::Diff.new('string1', 'string2').to_s(:html) end diff --git a/test/functional/content_viewer_controller_test.rb b/test/functional/content_viewer_controller_test.rb index 9e9784b..acbb2c9 100644 --- a/test/functional/content_viewer_controller_test.rb +++ b/test/functional/content_viewer_controller_test.rb @@ -1211,7 +1211,7 @@ class ContentViewerControllerTest < ActionController::TestCase :published => true, :body => "

That is a bold statement right there!

" ) - ContentViewerController.versioning_articles('Post1','Post2') + @controller.versioning_articles('Post1','Post2') end should 'not display comments marked as spam' do -- libgit2 0.21.2