mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Safely autocorrect Layout/EmptyLinesAroundBlockBody
Inspecting 1540 files .........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................C.............................................................................................................................................................................................................................................................................................................................................................C............................................................................ Offenses: spec/lib/stripe/payment_intent_validator_spec.rb:7:1: C: [Corrected] Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning. spec/system/admin/products_v3/products_spec.rb:219:1: C: [Corrected] Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body end. 1540 files inspected, 2 offenses detected, 2 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: 2
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: empty_lines, no_empty_lines
|
||||
Layout/EmptyLinesAroundBlockBody:
|
||||
Exclude:
|
||||
- 'spec/lib/stripe/payment_intent_validator_spec.rb'
|
||||
- 'spec/system/admin/products_v3/products_spec.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
||||
|
||||
@@ -4,7 +4,6 @@ require 'spec_helper'
|
||||
require 'stripe/payment_intent_validator'
|
||||
|
||||
describe Stripe::PaymentIntentValidator do
|
||||
|
||||
let(:payment_method) {
|
||||
create(:stripe_sca_payment_method, distributor_ids: [create(:distributor_enterprise).id],
|
||||
preferred_enterprise_id: create(:enterprise).id)
|
||||
|
||||
@@ -216,7 +216,6 @@ describe 'As an admin, I can manage products', feature: :admin_style_v3 do
|
||||
expect(page).to have_field "Price", with: "10.25"
|
||||
expect(page).to have_css "button[aria-label='On Hand']", text: "6"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
it "switches stock to on-demand" do
|
||||
|
||||
Reference in New Issue
Block a user