From e546a6b583eb7e4e86f8b9ac76d1e661b7ff6ee0 Mon Sep 17 00:00:00 2001 From: Neal Chambers Date: Fri, 21 Jul 2023 22:45:51 +0900 Subject: [PATCH] Safely autocorrect Layout/LineContinuationSpacing Inspecting 1478 files ...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................C.....................C............................................................................ Offenses: spec/system/admin/enterprise_fees_spec.rb:52:46: C: [Corrected] Layout/LineContinuationSpacing: Use one space in front of backslash. fill_in "#{prefix}_calculator_attributes"\ ^ spec/system/admin/enterprise_fees_spec.rb:57:58: C: [Corrected] Layout/LineContinuationSpacing: Use one space in front of backslash. expect(page).to have_selector("##{prefix}_calculator"\ ^ spec/system/admin/enterprise_fees_spec.rb:142:43: C: [Corrected] Layout/LineContinuationSpacing: Use one space in front of backslash. "#{prefix}_calculator_attributes_"\ ^ spec/system/admin/order_spec.rb:646:84: C: [Corrected] Layout/LineContinuationSpacing: Use one space in front of backslash. accept_alert "An invoice for this order will be sent to the customer. "\ ^ 1478 files inspected, 4 offenses detected, 4 offenses corrected --- .rubocop_todo.yml | 9 --------- spec/system/admin/enterprise_fees_spec.rb | 6 +++--- spec/system/admin/order_spec.rb | 2 +- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index d6bae6504a..0f7e5b5daa 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -6,15 +6,6 @@ # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. -# Offense count: 4 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: space, no_space -Layout/LineContinuationSpacing: - Exclude: - - 'spec/system/admin/enterprise_fees_spec.rb' - - 'spec/system/admin/order_spec.rb' - # Offense count: 94 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. diff --git a/spec/system/admin/enterprise_fees_spec.rb b/spec/system/admin/enterprise_fees_spec.rb index 0669db1418..9ff0ae0da9 100644 --- a/spec/system/admin/enterprise_fees_spec.rb +++ b/spec/system/admin/enterprise_fees_spec.rb @@ -49,12 +49,12 @@ describe ' expect(page).to have_selector "input[value='Hello!']" # When I fill in the calculator fields and click update - fill_in "#{prefix}_calculator_attributes"\ + fill_in "#{prefix}_calculator_attributes" \ "_preferred_flat_percent", with: '12.34' click_button 'Update' # Then I should see the correct values in my calculator fields - expect(page).to have_selector("##{prefix}_calculator"\ + expect(page).to have_selector("##{prefix}_calculator" \ "_attributes_preferred_flat_percent[value='12.34']") end @@ -139,7 +139,7 @@ describe ' it 'shows error flash when updating fee amount with invalid values' do # When I fill in the calculator fields and click update fill_in( - "#{prefix}_calculator_attributes_"\ + "#{prefix}_calculator_attributes_" \ 'preferred_flat_percent', with: "\'20.0'" ) click_button 'Update' diff --git a/spec/system/admin/order_spec.rb b/spec/system/admin/order_spec.rb index 6c0cb60835..4007224466 100644 --- a/spec/system/admin/order_spec.rb +++ b/spec/system/admin/order_spec.rb @@ -643,7 +643,7 @@ describe ' end it 'can send invoices' do - accept_alert "An invoice for this order will be sent to the customer. "\ + accept_alert "An invoice for this order will be sent to the customer. " \ "Are you sure you want to continue?" do click_link "Send Invoice" end