Commit 225bf66ea33bbfe483a0412a9dbc8db54414e6b8

Authored by Victor Costa
1 parent 61af39c0

Fix person notification for actions with comments

(ActionItem2694)
app/views/person_notifier/mailer/_profile_comments.rhtml
... ... @@ -8,6 +8,6 @@
8 8 </div>
9 9 <% else %>
10 10 <ul>
11   - <%= render :partial => 'comment', :collection => activity.comments_as_thread %>
  11 + <%= render :partial => 'comment', :collection => activity.comments %>
12 12 </ul>
13 13 <% end %>
... ...
test/unit/person_notifier_test.rb
... ... @@ -147,7 +147,7 @@ class PersonNotifierTest &lt; ActiveSupport::TestCase
147 147 action.stubs(:created_at).returns(DateTime.now)
148 148 action.stubs(:target).returns(fast_create(Forum))
149 149 action.stubs(:comments_count).returns(0)
150   - action.stubs(:comments_as_thread).returns([])
  150 + action.stubs(:comments).returns([])
151 151 action.stubs(:params).returns({'name' => 'home', 'url' => '/', 'lead' => ''})
152 152 action.stubs(:get_url).returns('')
153 153  
... ...