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