mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
Fixing an ordering issue in the order cycle spec
This commit is contained in:
@@ -280,8 +280,13 @@ describe OrderCycle do
|
||||
occ.coordinator.should == oc.coordinator
|
||||
|
||||
occ.coordinator_fee_ids.should == oc.coordinator_fee_ids
|
||||
|
||||
(0..occ.exchanges.count).all? { |i| occ.exchanges[i].eql? oc.exchanges[i] }.should be_true
|
||||
|
||||
#(0..occ.exchanges.count).all? { |i| occ.exchanges[i].eql? oc.exchanges[i] }.should be_true
|
||||
|
||||
# to_h gives us a unique hash for each exchange
|
||||
occ.exchanges.map(&:to_h).all? do |ex|
|
||||
oc.exchanges.map(&:to_h).include? ex
|
||||
end
|
||||
end
|
||||
|
||||
describe "creating adjustments for a line item" do
|
||||
|
||||
Reference in New Issue
Block a user