Fix spree/models/adjustment_spec rubocop issues

This commit is contained in:
luisramos0
2018-10-09 18:07:53 +01:00
parent 6aa8978fe9
commit 3b6d29968d
2 changed files with 3 additions and 6 deletions

View File

@@ -241,7 +241,6 @@ Layout/EmptyLines:
- 'spec/models/enterprise_spec.rb'
- 'spec/models/model_set_spec.rb'
- 'spec/models/product_distribution_spec.rb'
- 'spec/models/spree/adjustment_spec.rb'
- 'spec/models/spree/line_item_spec.rb'
- 'spec/models/spree/order_populator_spec.rb'
- 'spec/models/spree/order_spec.rb'
@@ -394,7 +393,6 @@ Layout/ExtraSpacing:
- 'spec/models/enterprise_fee_spec.rb'
- 'spec/models/enterprise_spec.rb'
- 'spec/models/order_cycle_spec.rb'
- 'spec/models/spree/adjustment_spec.rb'
- 'spec/models/spree/gateway/stripe_connect_spec.rb'
- 'spec/models/spree/order_spec.rb'
- 'spec/models/variant_override_spec.rb'
@@ -1150,7 +1148,6 @@ Lint/Void:
- 'spec/models/enterprise_spec.rb'
- 'spec/models/exchange_spec.rb'
- 'spec/models/order_cycle_spec.rb'
- 'spec/models/spree/adjustment_spec.rb'
- 'spec/models/spree/line_item_spec.rb'
- 'spec/models/spree/order_populator_spec.rb'
- 'spec/models/spree/order_spec.rb'

View File

@@ -92,7 +92,7 @@ module Spree
end
describe "when tax on shipping is enabled" do
before { Config.shipment_inc_vat = true }
before { Config.shipment_inc_vat = true }
it "takes the shipment adjustment tax included from the system setting" do
Config.shipping_tax_rate = 0.25
@@ -188,7 +188,7 @@ module Spree
describe "when the tax rate does not include the tax in the price" do
before do
fee_tax_rate.update_attribute :included_in_price, false
order.reload.create_tax_charge! # Updating line_item or order has the same effect
order.reload.create_tax_charge! # Updating line_item or order has the same effect
order.update_distribution_charge!
end
@@ -257,7 +257,7 @@ module Spree
describe "when the tax rate does not include the tax in the price" do
before do
product_tax_rate.update_attribute :included_in_price, false
order.reload.create_tax_charge! # Updating line_item or order has the same effect
order.reload.create_tax_charge! # Updating line_item or order has the same effect
order.update_distribution_charge!
end