mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-02 21:57:17 +00:00
Fix Style/RaiseArgs
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user