mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge branch 'master' into supplied-active-products-on-hand
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user