Apply Layout/LineLength rubocop rule
Note we're excluding a few files: * Configuration files that weren't generated by us * Migration files that weren't generated by us * The Gemfile, since it includes an important comment that must be on the same line as the gem declaration * The Budget::Stats class, since the heading statistics are a mess and having shorter lines would require a lot of refactoring
This commit is contained in:
@@ -16,8 +16,10 @@ describe UsersHelper do
|
||||
|
||||
debate.hide
|
||||
|
||||
expect(comment_commentable_title(comment)).to eq("<del>" + comment.commentable.title +
|
||||
'</del> <span class="small">(This debate has been deleted)</span>')
|
||||
expect(comment_commentable_title(comment)).to eq "<del>#{comment.commentable.title}</del> " \
|
||||
'<span class="small">' \
|
||||
"(This debate has been deleted)" \
|
||||
"</span>"
|
||||
end
|
||||
|
||||
it "returns the appropriate message for deleted proposals" do
|
||||
@@ -26,8 +28,10 @@ describe UsersHelper do
|
||||
|
||||
proposal.hide
|
||||
|
||||
expect(comment_commentable_title(comment)).to eq("<del>" + comment.commentable.title +
|
||||
'</del> <span class="small">(This proposal has been deleted)</span>')
|
||||
expect(comment_commentable_title(comment)).to eq "<del>#{comment.commentable.title}</del> " \
|
||||
'<span class="small">' \
|
||||
"(This proposal has been deleted)" \
|
||||
"</span>"
|
||||
end
|
||||
|
||||
it "returns the appropriate message for deleted budget investment" do
|
||||
@@ -36,8 +40,10 @@ describe UsersHelper do
|
||||
|
||||
investment.hide
|
||||
|
||||
expect(comment_commentable_title(comment)).to eq("<del>" + comment.commentable.title +
|
||||
'</del> <span class="small">(This investment project has been deleted)</span>')
|
||||
expect(comment_commentable_title(comment)).to eq "<del>#{comment.commentable.title}</del> " \
|
||||
'<span class="small">' \
|
||||
"(This investment project has been deleted)" \
|
||||
"</span>"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -50,8 +56,10 @@ describe UsersHelper do
|
||||
it "returns a hint if the commentable has been deleted" do
|
||||
comment = create(:comment)
|
||||
comment.commentable.hide
|
||||
expect(comment_commentable_title(comment)).to eq("<del>" + comment.commentable.title +
|
||||
'</del> <span class="small">(This debate has been deleted)</span>')
|
||||
expect(comment_commentable_title(comment)).to eq "<del>#{comment.commentable.title}</del> " \
|
||||
'<span class="small">' \
|
||||
"(This debate has been deleted)" \
|
||||
"</span>"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user