diff --git a/spec/models/enterprise_fee_spec.rb b/spec/models/enterprise_fee_spec.rb index 40a0d48ed2..98de10c7f6 100644 --- a/spec/models/enterprise_fee_spec.rb +++ b/spec/models/enterprise_fee_spec.rb @@ -66,7 +66,7 @@ describe EnterpriseFee do describe "scopes" do describe "finding per-item enterprise fees" do - it "does not return fees with FlatRate and FlexiRate calculators" do + it "does not return fees with FlatRate, FlexiRate and PriceSack calculators" do create(:enterprise_fee, calculator: Spree::Calculator::FlatRate.new) create(:enterprise_fee, calculator: Spree::Calculator::FlexiRate.new) create(:enterprise_fee, calculator: Spree::Calculator::PriceSack.new) @@ -84,7 +84,7 @@ describe EnterpriseFee do end describe "finding per-order enterprise fees" do - it "returns fees with FlatRate and FlexiRate calculators" do + it "returns fees with FlatRate, FlexiRate and PriceSack calculators" do ef1 = create(:enterprise_fee, calculator: Spree::Calculator::FlatRate.new) ef2 = create(:enterprise_fee, calculator: Spree::Calculator::FlexiRate.new) ef3 = create(:enterprise_fee, calculator: Spree::Calculator::PriceSack.new) diff --git a/spec/models/spree/calculator/price_sack_spec.rb b/spec/models/spree/calculator/price_sack_spec.rb index f3ab175b7c..9b0a38d0e8 100644 --- a/spec/models/spree/calculator/price_sack_spec.rb +++ b/spec/models/spree/calculator/price_sack_spec.rb @@ -13,14 +13,14 @@ describe Spree::Calculator::PriceSack do context 'when the order amount is below preferred minimal' do let(:price) { 2 } - it "computes with a line item object" do + it "uses the preferred normal amount" do expect(calculator.compute(line_item)).to eq(10) end end context 'when the order amount is above preferred minimal' do let(:price) { 6 } - it "computes with a line item object" do + it "uses the preferred discount amount" do expect(calculator.compute(line_item)).to eq(1) end end