diff --git a/spec/helpers/users_helper_spec.rb b/spec/helpers/users_helper_spec.rb
index dcc92ba59..55ea8445b 100644
--- a/spec/helpers/users_helper_spec.rb
+++ b/spec/helpers/users_helper_spec.rb
@@ -17,7 +17,7 @@ describe UsersHelper do
debate.hide
- expect(comment_commentable_title(comment)).to eq "#{comment.commentable.title}"
+ expect(comment_commentable_title(comment)).to eq '' + comment.commentable.title + ' (This debate has been deleted)'
end
it "should return the appropriate message for deleted proposals" do
@@ -26,7 +26,7 @@ describe UsersHelper do
proposal.hide
- expect(comment_commentable_title(comment)).to eq "#{comment.commentable.title}"
+ expect(comment_commentable_title(comment)).to eq '' + comment.commentable.title + ' (This proposal has been deleted)'
end
it "should return the appropriate message for deleted budget investment" do
@@ -35,7 +35,7 @@ describe UsersHelper do
investment.hide
- expect(comment_commentable_title(comment)).to eq "#{comment.commentable.title}"
+ expect(comment_commentable_title(comment)).to eq '' + comment.commentable.title + ' (This investment has been deleted)'
end
end
@@ -48,7 +48,7 @@ describe UsersHelper do
it "should return a hint if the commentable has been deleted" do
comment = create(:comment)
comment.commentable.hide
- expect(comment_commentable_title(comment)).to eq "#{comment.commentable.title}"
+ expect(comment_commentable_title(comment)).to eq '' + comment.commentable.title + ' (This debate has been deleted)'
end
end