From 68cc9ed2fe77ed0898b6f8e5fffff75cf6ed7fe8 Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 23 Feb 2024 10:02:23 +1100 Subject: [PATCH] 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 --- .rubocop_todo.yml | 9 --------- spec/lib/stripe/payment_intent_validator_spec.rb | 1 - spec/system/admin/products_v3/products_spec.rb | 1 - 3 files changed, 11 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 305b4571a5..5ea589531b 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: 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. diff --git a/spec/lib/stripe/payment_intent_validator_spec.rb b/spec/lib/stripe/payment_intent_validator_spec.rb index 70480ac2dd..797b62f9c2 100644 --- a/spec/lib/stripe/payment_intent_validator_spec.rb +++ b/spec/lib/stripe/payment_intent_validator_spec.rb @@ -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) diff --git a/spec/system/admin/products_v3/products_spec.rb b/spec/system/admin/products_v3/products_spec.rb index 125fe3c185..6164d1ecf2 100644 --- a/spec/system/admin/products_v3/products_spec.rb +++ b/spec/system/admin/products_v3/products_spec.rb @@ -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