From b3196295e669fef3617860b3ff87ae2a1e68bcf6 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Fri, 30 Oct 2020 16:37:29 +0000 Subject: [PATCH] Fix Style/RaiseArgs --- .rubocop_todo.yml | 8 -------- spec/controllers/checkout_controller_spec.rb | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 416d321c04..6b960d6000 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1281,14 +1281,6 @@ Style/NumericPredicate: - 'lib/spree/money_decorator.rb' - 'lib/tasks/sample_data.rake' -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: compact, exploded -Style/RaiseArgs: - Exclude: - - 'spec/controllers/checkout_controller_spec.rb' - # Offense count: 1 # Cop supports --auto-correct. Style/RandomWithOffset: diff --git a/spec/controllers/checkout_controller_spec.rb b/spec/controllers/checkout_controller_spec.rb index 0d285dab08..8f884f39c7 100644 --- a/spec/controllers/checkout_controller_spec.rb +++ b/spec/controllers/checkout_controller_spec.rb @@ -83,7 +83,7 @@ describe CheckoutController, type: :controller do call_count = 0 allow(order_checkout_restart).to receive(:call) do call_count += 1 - raise Spree::Core::GatewayError.new("Gateway blow up") if call_count == 1 + raise Spree::Core::GatewayError, "Gateway blow up" if call_count == 1 end spree_post :edit