Fix spec - enterprise needs to charge sales tax for tax to be charged

This commit is contained in:
Rohan Mitchell
2015-04-09 14:38:58 +10:00
parent 81324f3cc4
commit 9e8483348f

View File

@@ -96,7 +96,7 @@ module Spree
let(:tax_rate) { create(:tax_rate, included_in_price: true, calculator: Calculator::DefaultTax.new, zone: zone, amount: 0.1) }
let(:tax_category) { create(:tax_category, tax_rates: [tax_rate]) }
let(:coordinator) { create(:distributor_enterprise) }
let(:coordinator) { create(:distributor_enterprise, charges_sales_tax: true) }
let(:variant) { create(:variant) }
let(:order_cycle) { create(:simple_order_cycle, coordinator: coordinator, coordinator_fees: [enterprise_fee], distributors: [coordinator], variants: [variant]) }
let!(:order) { create(:order, order_cycle: order_cycle, distributor: coordinator) }