From 225bf66ea33bbfe483a0412a9dbc8db54414e6b8 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 20 Feb 2014 11:08:13 -0300 Subject: [PATCH] Fix person notification for actions with comments --- app/views/person_notifier/mailer/_profile_comments.rhtml | 2 +- test/unit/person_notifier_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/person_notifier/mailer/_profile_comments.rhtml b/app/views/person_notifier/mailer/_profile_comments.rhtml index 0f1333e..1988c29 100644 --- a/app/views/person_notifier/mailer/_profile_comments.rhtml +++ b/app/views/person_notifier/mailer/_profile_comments.rhtml @@ -8,6 +8,6 @@ <% else %> <% end %> diff --git a/test/unit/person_notifier_test.rb b/test/unit/person_notifier_test.rb index 491ac07..4def2d5 100644 --- a/test/unit/person_notifier_test.rb +++ b/test/unit/person_notifier_test.rb @@ -147,7 +147,7 @@ class PersonNotifierTest < ActiveSupport::TestCase action.stubs(:created_at).returns(DateTime.now) action.stubs(:target).returns(fast_create(Forum)) action.stubs(:comments_count).returns(0) - action.stubs(:comments_as_thread).returns([]) + action.stubs(:comments).returns([]) action.stubs(:params).returns({'name' => 'home', 'url' => '/', 'lead' => ''}) action.stubs(:get_url).returns('') -- libgit2 0.21.2