updates tags on specs
This commit is contained in:
@@ -17,7 +17,7 @@ describe UsersHelper do
|
||||
|
||||
debate.hide
|
||||
|
||||
expect(comment_commentable_title(comment)).to eq "<abbr title='This debate has been deleted'>#{comment.commentable.title}</abbr>"
|
||||
expect(comment_commentable_title(comment)).to eq '<del>' + comment.commentable.title + '</del> <span class="small">(This debate has been deleted)</span>'
|
||||
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 "<abbr title='This proposal has been deleted'>#{comment.commentable.title}</abbr>"
|
||||
expect(comment_commentable_title(comment)).to eq '<del>' + comment.commentable.title + '</del> <span class="small">(This proposal has been deleted)</span>'
|
||||
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 "<abbr title='This investment has been deleted'>#{comment.commentable.title}</abbr>"
|
||||
expect(comment_commentable_title(comment)).to eq '<del>' + comment.commentable.title + '</del> <span class="small">(This investment has been deleted)</span>'
|
||||
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 "<abbr title='This debate has been deleted'>#{comment.commentable.title}</abbr>"
|
||||
expect(comment_commentable_title(comment)).to eq '<del>' + comment.commentable.title + '</del> <span class="small">(This debate has been deleted)</span>'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user