Fix rubocop issue Layout/BlockAlignment

This commit is contained in:
Luis Ramos
2020-10-30 15:57:48 +00:00
parent 3e6e338e3d
commit 3fe2684270
2 changed files with 1 additions and 9 deletions

View File

@@ -6,14 +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: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleAlignWith.
# SupportedStylesAlignWith: either, start_of_block, start_of_line
Layout/BlockAlignment:
Exclude:
- 'spec/models/spree/order/checkout_spec.rb'
# Offense count: 3
# Cop supports --auto-correct.
Layout/EmptyLines:

View File

@@ -122,7 +122,7 @@ describe Spree::Order::Checkout do
order.state = 'payment'
end
context "when payment is required" do
context "when payment is required" do
before do
allow(order).to receive_messages confirmation_required?: false
allow(order).to receive_messages payment_required?: true