Fix rubocop issue Layout/EmptyLinesAroundBlockBody

This commit is contained in:
Luis Ramos
2020-10-30 15:59:22 +00:00
parent eb4e732c1a
commit d4c52ce122
3 changed files with 0 additions and 13 deletions

View File

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

View File

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

View File

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