spec/user_spec.rb in closure_tree-3.3.2 vs spec/user_spec.rb in closure_tree-3.4.0
- old
+ new
@@ -111,9 +111,9 @@
d = User.new(:email => "d")
c2.children << d
a.save
User.roots.should == [a]
- User.leaves.should == [b1, c1, d]
+ User.leaves.should =~ [b1, c1, d]
d.ancestry_path.should == %w(a b2 c2 d)
end
end