Permalink
Browse files

[promo] stop depending on DB order in promotion_adjustments's spec

  • Loading branch information...
1 parent e21ef54 commit 39f19c8dc06bf6855097b2e3e2b75ee8882e0138 @radar radar committed May 29, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 promo/spec/requests/promotion_adjustments_spec.rb
@@ -340,8 +340,7 @@
last_order = Spree::Order.last
last_order.line_items.count.should == 2
- last_order.line_items.first.price.to_f.should == 20.00
- last_order.line_items.last.price.to_f.should == 40.00
+ last_order.line_items.map(&:price).should =~ [20.00, 40.00]
last_order.item_total.to_f.should == 60.00
last_order.adjustments.promotion.map(&:amount).sum.to_f.should == -40.00
last_order.total.to_f.should == 30.00

0 comments on commit 39f19c8

Please sign in to comment.