test/unit/test_page.rb in spontaneous-0.2.0.alpha2 vs test/unit/test_page.rb in spontaneous-0.2.0.alpha3

- old
+ new

@@ -132,10 +132,14 @@ @r = Page[@r.id] @s = Page[@s.id] @t = Page[@t.id] end + should "be able to find a reference to their inline entry" do + @q.entry.class.should == Spontaneous::PagePiece + end + should "have a reference to their parent" do @p.parent.should be_nil @q.parent.should === @p @r.parent.should === @q @s.parent.should === @q @@ -345,11 +349,11 @@ @page_piece = @parent.things.first.things.first end should "report their depth according to their position in the piece tree" do @parent.depth.should == 0 - @parent.pieces.first.depth.should == 1 - @parent.pieces.first.pieces.first.depth.should == 2 + @parent.contents.first.depth.should == 1 + @parent.contents.first.contents.first.depth.should == 2 end should "know their page" do @page_piece.page.should == @parent end