mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
Fix rubocop issue Layout/EmptyLinesAroundBlockBody
This commit is contained in:
@@ -6,15 +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: 4
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: empty_lines, no_empty_lines
|
||||
Layout/EmptyLinesAroundBlockBody:
|
||||
Exclude:
|
||||
- 'spec/models/spree/payment_spec.rb'
|
||||
- 'spec/models/spree/zone_spec.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
||||
|
||||
@@ -61,7 +61,6 @@ describe Spree::Payment do
|
||||
payment.failure
|
||||
expect(payment.state).to eql('failed')
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
context 'invalidate' do
|
||||
@@ -105,7 +104,6 @@ describe Spree::Payment do
|
||||
expect { payment.process!}.to raise_error(Spree::Core::GatewayError)
|
||||
expect(payment.state).to eq('invalid')
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
context "#authorize" do
|
||||
@@ -566,7 +564,6 @@ describe Spree::Payment do
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
context "when profiles are not supported" do
|
||||
|
||||
@@ -107,7 +107,6 @@ describe Spree::Zone do
|
||||
before { state_zone.members.create(zoneable: state) }
|
||||
|
||||
it "should be true" do
|
||||
|
||||
expect(state_zone.include?(address)).to be_truthy
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user