Fix rubocop issue Layout/ExtraSpacing

This commit is contained in:
Luis Ramos
2020-10-30 15:59:57 +00:00
parent d4c52ce122
commit 06433b1be3
3 changed files with 3 additions and 11 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: 3
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
Layout/ExtraSpacing:
Exclude:
- 'spec/models/spree/payment_spec.rb'
- 'spec/requests/api/orders_spec.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.

View File

@@ -181,7 +181,7 @@ describe Spree::Payment do
context "when gateway does not match the environment" do
it "should raise an exception" do
gateway.stub :environment => "foo"
expect { payment.purchase! }.to raise_error(Spree::Core::GatewayError)
expect { payment.purchase! }.to raise_error(Spree::Core::GatewayError)
end
end

View File

@@ -30,8 +30,8 @@ describe 'api/orders', type: :request do
context "when there are four orders with different properties set" do
let!(:order_dist_1) { create(:order_with_distributor, email: "specific_name@example.com") }
let!(:order_dist_2) { create(:order_with_totals_and_distribution) }
let!(:order_dist_1_complete) { create(:order, distributor: order_dist_1.distributor, state: 'complete', completed_at: Time.zone.today - 7.days) }
let!(:order_dist_1_credit_owed) { create(:order, distributor: order_dist_1.distributor, payment_state: 'credit_owed', completed_at: Time.zone.today) }
let!(:order_dist_1_complete) { create(:order, distributor: order_dist_1.distributor, state: 'complete', completed_at: Time.zone.today - 7.days) }
let!(:order_dist_1_credit_owed) { create(:order, distributor: order_dist_1.distributor, payment_state: 'credit_owed', completed_at: Time.zone.today) }
let(:user) { order_dist_1.distributor.owner }
let(:'X-Spree-Token') do