changes links in 'My activity' to point to comment
(instead of to commentable) Closes #947
This commit is contained in:
@@ -20,7 +20,7 @@ module UsersHelper
|
||||
commentable.title +
|
||||
"</abbr>".html_safe
|
||||
else
|
||||
link_to(commentable.title, commentable)
|
||||
link_to(commentable.title, comment)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -31,9 +31,9 @@ describe UsersHelper do
|
||||
end
|
||||
|
||||
describe '#comment_commentable_title' do
|
||||
it "should return a link to the commentable" do
|
||||
it "should return a link to the comment" do
|
||||
comment = create(:comment)
|
||||
expect(comment_commentable_title(comment)).to eq link_to comment.commentable.title, comment.commentable
|
||||
expect(comment_commentable_title(comment)).to eq link_to comment.commentable.title, comment
|
||||
end
|
||||
|
||||
it "should return a hint if the commentable has been deleted" do
|
||||
|
||||
Reference in New Issue
Block a user