Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Test for elements ignoring order

  • Loading branch information...
commit d9d289069512ddca71f8becfe0da87418d298799 1 parent e6e0208
@magnetised magnetised authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/unit/test_content_inheritance.rb
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.