From b9eb6867d7babc803c0427b58d47c6cd899816a4 Mon Sep 17 00:00:00 2001 From: decabeza Date: Tue, 1 Aug 2017 16:48:09 +0200 Subject: [PATCH] updates tags on specs --- spec/helpers/users_helper_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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