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

@@ -80,14 +80,16 @@ describe RemoteTranslations::Microsoft::Client do
response_another_start_text = [another_start_translated_text_es]
response_another_end_text = [another_end_translated_text_es]
expect_any_instance_of(BingTranslator).to receive(:translate_array).with([start_another_text_en], to: :es)
.exactly(1)
.times
.and_return(response_another_start_text)
expect_any_instance_of(BingTranslator).to receive(:translate_array).with([end_another_text_en], to: :es)
.exactly(1)
.times
.and_return(response_another_end_text)
expect_any_instance_of(BingTranslator).to(receive(:translate_array)
.with([start_another_text_en], to: :es)
.exactly(1)
.times
.and_return(response_another_start_text))
expect_any_instance_of(BingTranslator).to(receive(:translate_array)
.with([end_another_text_en], to: :es)
.exactly(1)
.times
.and_return(response_another_end_text))
result = client.call([text_en, another_text_en], :es)