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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user