Fix Style/RaiseArgs

This commit is contained in:
Luis Ramos
2020-10-30 16:37:29 +00:00
parent 75cec3b606
commit b3196295e6
2 changed files with 1 additions and 9 deletions

View File

@@ -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:

View File

@@ -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