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:
@@ -14,7 +14,8 @@ describe SignatureSheetsHelper do
|
||||
Setting["remote_census.request.postal_code"] = nil
|
||||
|
||||
text_help_1 = "To verify a user, your application needs: Document number"
|
||||
text_help_2 = "Required fields for each user must be separated by commas and each user must be separated by semicolons."
|
||||
text_help_2 = "Required fields for each user must be separated by commas " \
|
||||
"and each user must be separated by semicolons."
|
||||
text_example = "Example: 12345678Z; 87654321Y"
|
||||
|
||||
expect(required_fields_to_verify_text_help).to include(text_help_1)
|
||||
@@ -25,8 +26,10 @@ describe SignatureSheetsHelper do
|
||||
it "returns text help when date_of_birth is required" do
|
||||
Setting["remote_census.request.postal_code"] = nil
|
||||
|
||||
text_help_1 = "To verify a user, your application needs: Document number, Day of birth (dd/mm/yyyy)"
|
||||
text_help_2 = "Required fields for each user must be separated by commas and each user must be separated by semicolons."
|
||||
text_help_1 = "To verify a user, your application needs: " \
|
||||
"Document number, Day of birth (dd/mm/yyyy)"
|
||||
text_help_2 = "Required fields for each user must be separated by commas " \
|
||||
"and each user must be separated by semicolons."
|
||||
text_example = "Example: 12345678Z, 01/01/1980; 87654321Y, 01/02/1990"
|
||||
|
||||
expect(required_fields_to_verify_text_help).to include(text_help_1)
|
||||
@@ -37,8 +40,10 @@ describe SignatureSheetsHelper do
|
||||
it "returns text help when postal_code is required" do
|
||||
Setting["remote_census.request.date_of_birth"] = nil
|
||||
|
||||
text_help_1 = "To verify a user, your application needs: Document number and Postal Code"
|
||||
text_help_2 = "Required fields for each user must be separated by commas and each user must be separated by semicolons."
|
||||
text_help_1 = "To verify a user, your application needs: " \
|
||||
"Document number and Postal Code"
|
||||
text_help_2 = "Required fields for each user must be separated by commas " \
|
||||
"and each user must be separated by semicolons."
|
||||
text_example = "Example: 12345678Z, 28001; 87654321Y, 28002"
|
||||
|
||||
expect(required_fields_to_verify_text_help).to include(text_help_1)
|
||||
@@ -47,8 +52,10 @@ describe SignatureSheetsHelper do
|
||||
end
|
||||
|
||||
it "returns text help when date_of_birth and postal_code are required" do
|
||||
text_help_1 = "To verify a user, your application needs: Document number, Day of birth (dd/mm/yyyy) and Postal Code"
|
||||
text_help_2 = "Required fields for each user must be separated by commas and each user must be separated by semicolons."
|
||||
text_help_1 = "To verify a user, your application needs: " \
|
||||
"Document number, Day of birth (dd/mm/yyyy) and Postal Code"
|
||||
text_help_2 = "Required fields for each user must be separated by commas " \
|
||||
"and each user must be separated by semicolons."
|
||||
text_example = "Example: 12345678Z, 01/01/1980, 28001; 87654321Y, 01/02/1990, 28002"
|
||||
|
||||
expect(required_fields_to_verify_text_help).to include(text_help_1)
|
||||
|
||||
@@ -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