Skip to content

Commit

Permalink
Group two identical loops in order_updater_spec
Browse files Browse the repository at this point in the history
Also fixes single quotes that were prevent interpolation.
  • Loading branch information
jordan-brough committed Sep 23, 2016
1 parent 0c08459 commit ba17bba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/spec/models/spree/order_updater_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,7 @@ def create_adjustment(label, amount)
expect(order.all_adjustments.eligible.count).to eq(1), 'Expected one elegible adjustment'
expect(order.all_adjustments.eligible.first.source.promotion).to eq(order_promo2), 'Expected promo2 to be used'
end
end
end

promo_sequences.each do |promo_sequence|
context 'with promo sequence #{promo_sequence}' do
it 'should pick the best line-item-level promo according to current eligibility' do
# apply both promos to the order, even though only promo1 is eligible
line_item_promos[promo_sequence[0]].activate order: order
Expand Down

0 comments on commit ba17bba

Please sign in to comment.