We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d98106d commit 3b1ae8cCopy full SHA for 3b1ae8c
promotions/spec/models/solidus_promotions/calculators/flexi_rate_spec.rb
@@ -188,6 +188,21 @@
188
189
subject { calculator.compute(price, { order: order, quantity: quantity }) }
190
191
+ context "with no order given" do
192
+ let(:order) { nil }
193
+
194
+ context "when first_item and additional_item have values" do
195
+ let(:first_item) { 1.13 }
196
+ let(:additional_item) { 2.11 }
197
198
+ context "with quantity 2" do
199
+ let(:quantity) { 2 }
200
201
+ it { is_expected.to eq(1.62) }
202
+ end
203
204
205
206
context "if nothing is in the cart" do
207
let(:line_item_quantity) { 0 }
208
0 commit comments