Permalink
Browse files

Test for elements ignoring order

  • Loading branch information...
1 parent e6e0208 commit d9d289069512ddca71f8becfe0da87418d298799 @magnetised magnetised committed Apr 13, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/unit/test_content_inheritance.rb
@@ -60,9 +60,9 @@ class ::PieceClass22 < PieceClass2; end
context "Pages" do
should "type subclasses found via Page" do
- ::Page.all.map { |c| c.class }.should == \
- [PageClass1, PageClass11, PageClass111, PageClass2, PageClass22]
- ::Page.all.should == [@page1, @page11, @page111, @page2, @page22]
+ Set.new(::Page.all.map { |c| c.class }).should == \
+ Set.new([PageClass1, PageClass11, PageClass111, PageClass2, PageClass22])
+ Set.new(::Page.all).should == Set.new([@page1, @page11, @page111, @page2, @page22])
end
should "type subclasses found via Spontaneous::Page" do

0 comments on commit d9d2890

Please sign in to comment.