From 2ea3fd7dd816255b1f235c66d3852972e974630a Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Sat, 14 Nov 2020 12:03:51 +0100 Subject: [PATCH] Consistent multi-line string concatenation I have suggested some rules for consistent formatting of these strings in https://github.com/rubocop-hq/rubocop/issues/6420, but it seems to be too complicated to have RuboCop enforce them. --- .../cop/capybara/current_path_expectation_spec.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spec/rubocop/cop/capybara/current_path_expectation_spec.rb b/spec/rubocop/cop/capybara/current_path_expectation_spec.rb index 619cf2e..f2c1a88 100644 --- a/spec/rubocop/cop/capybara/current_path_expectation_spec.rb +++ b/spec/rubocop/cop/capybara/current_path_expectation_spec.rb @@ -29,37 +29,37 @@ include_examples 'autocorrect', 'expect(current_path).to eq expected_path', - 'expect(page).to have_current_path expected_path, '\ + 'expect(page).to have_current_path expected_path, ' \ 'ignore_query: true' include_examples 'autocorrect', 'expect(current_path).to eq(expected_path)', - 'expect(page).to have_current_path(expected_path, '\ + 'expect(page).to have_current_path(expected_path, ' \ 'ignore_query: true)' include_examples 'autocorrect', 'expect(current_path).to(eq(expected_path))', - 'expect(page).to(have_current_path(expected_path, '\ + 'expect(page).to(have_current_path(expected_path, ' \ 'ignore_query: true))' include_examples 'autocorrect', 'expect(current_path).to eq(expected_path(f: :b))', - 'expect(page).to have_current_path(expected_path(f: :b), '\ + 'expect(page).to have_current_path(expected_path(f: :b), ' \ 'ignore_query: true)' include_examples 'autocorrect', 'expect(page.current_path).to eq(foo(bar).path)', - 'expect(page).to have_current_path(foo(bar).path, '\ + 'expect(page).to have_current_path(foo(bar).path, ' \ 'ignore_query: true)' include_examples 'autocorrect', 'expect(current_path).not_to eq expected_path', - 'expect(page).to have_no_current_path expected_path, '\ + 'expect(page).to have_no_current_path expected_path, ' \ 'ignore_query: true' include_examples 'autocorrect', 'expect(current_path).to_not eq expected_path', - 'expect(page).to have_no_current_path expected_path, '\ + 'expect(page).to have_no_current_path expected_path, ' \ 'ignore_query: true' include_examples 'autocorrect',