From f8d51c31059dbc8b2fe5f3299407c2cd0a0d72a5 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Thu, 26 Jun 2014 15:43:33 +1000 Subject: [PATCH] Fixing intermittent spec failure --- spec/models/enterprise_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/enterprise_spec.rb b/spec/models/enterprise_spec.rb index dcc92f81f5..0fa57d19d3 100644 --- a/spec/models/enterprise_spec.rb +++ b/spec/models/enterprise_spec.rb @@ -437,12 +437,12 @@ describe Enterprise do it "gets all taxons of all distributed products" do Spree::Product.stub(:in_distributor).and_return [product1, product2] - distributor.distributed_taxons.should == [taxon1, taxon2] + distributor.distributed_taxons.sort.should == [taxon1, taxon2].sort end it "gets all taxons of all supplied products" do Spree::Product.stub(:in_supplier).and_return [product1, product2] - supplier.supplied_taxons.should == [taxon1, taxon2] + supplier.supplied_taxons.sort.should == [taxon1, taxon2].sort end end