Permalink
Browse files

Fixed spec failure caused by ordering of result set

  • Loading branch information...
1 parent f8d2602 commit e78a14cd00040518299e09aea4aa86a9036aa73d @mshibuya committed Feb 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/unit/adapters/mongoid/abstract_object_spec.rb
@@ -18,13 +18,13 @@
@author.articles.should == []
@author.article_ids = @articles.map(&:id)
@author.reload
- @author.articles.should == @articles
+ @author.articles.sort.should == @articles.sort
end
it "skips invalid id on assignment through foo_ids=" do
@author.article_ids = @articles.map{|item| item.id.to_s }.unshift('4f431021dcf2310db7000006')
@author.reload
- @author.articles.should == @articles
+ @author.articles.sort.should == @articles.sort
end
end
end

0 comments on commit e78a14c

Please sign in to comment.