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:
Javi Martín
2023-07-19 21:37:59 +02:00
parent 75d2782061
commit a1439d0790
156 changed files with 1330 additions and 503 deletions

View File

@@ -200,21 +200,32 @@ describe SignatureSheet do
it "returns an array after spliting document numbers by semicolons" do
signature_sheet.required_fields_to_verify = "123A\r\n;456B;\n789C;123B"
expect(signature_sheet.parsed_required_fields_to_verify_groups).to eq([["123A"], ["456B"], ["789C"], ["123B"]])
expect(signature_sheet.parsed_required_fields_to_verify_groups).to eq([["123A"],
["456B"],
["789C"],
["123B"]])
end
it "returns an array after spliting all required_fields_to_verify by semicolons" do
required_fields_to_verify = "123A\r\n, 01/01/1980\r\n, 28001\r\n; 456B\n, 01/02/1980\n, 28002\n; 789C, 01/03/1980"
required_fields_to_verify = "123A\r\n, 01/01/1980\r\n, 28001\r\n; " \
"456B\n, 01/02/1980\n, 28002\n; " \
"789C, 01/03/1980"
# signature_sheet.required_fields_to_verify = "123A\r\n456B\n789C;123B"
signature_sheet.required_fields_to_verify = required_fields_to_verify
expect(signature_sheet.parsed_required_fields_to_verify_groups).to eq([["123A", "01/01/1980", "28001"], ["456B", "01/02/1980", "28002"], ["789C", "01/03/1980"]])
expect(signature_sheet.parsed_required_fields_to_verify_groups).to eq([["123A", "01/01/1980", "28001"],
["456B", "01/02/1980", "28002"],
["789C", "01/03/1980"]])
end
it "strips spaces between number and letter" do
signature_sheet.required_fields_to_verify = "123 A, 01/01/1980, 28001;\n456 B , 01/02/1980, 28002;\n 789C ,01/03/1980, 28 003"
signature_sheet.required_fields_to_verify = "123 A, 01/01/1980, 28001;\n" \
"456 B , 01/02/1980, 28002;\n" \
"789C ,01/03/1980, 28 003"
expect(signature_sheet.parsed_required_fields_to_verify_groups).to eq([["123A", "01/01/1980", "28001"], ["456B", "01/02/1980", "28002"], ["789C", "01/03/1980", "28003"]])
expect(signature_sheet.parsed_required_fields_to_verify_groups).to eq([["123A", "01/01/1980", "28001"],
["456B", "01/02/1980", "28002"],
["789C", "01/03/1980", "28003"]])
end
end
end