mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
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
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user