Merge branch 'master' into supplied-active-products-on-hand

This commit is contained in:
Rohan Mitchell
2013-06-14 11:07:24 +10:00
2 changed files with 3 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
require 'spree/core/controller_helpers/order_decorator'
Spree::OrdersController.class_eval do
before_filter :populate_order_distributor, :only => :populate
before_filter :populate_order_count_on_hand, :only => :populate

View File

@@ -160,7 +160,7 @@ module OpenFoodWeb
applicator.send(:update_exchange, sender.id, receiver.id, {:variant_ids => [variant1.id, variant3.id]})
exchange.reload
exchange.variant_ids.should == [variant1.id, variant3.id]
exchange.variant_ids.sort.should == [variant1.id, variant3.id].sort
applicator.send(:touched_exchanges).should == [exchange]
end
end