require File.dirname(__FILE__) + '/../spec_helper' describe ArchiveMonthIndexPage do dataset :archive before :each do @page = pages(:month_index) end its(:allowed_children){ should == [] } it_should_behave_like "Archive index page" it "should render the tag" do @page.should render(' ').as('article-y ').on('/archive/2001/02/') @page.should render(' ').as('article-y ').on('/archive/2001/02') end it "should render the tag with interpolated date" do @page.should render('').as('June 2000 Archive').on('/archive/2000/06/') end it "should render the tag with interpolated date" do @page.should render('').as('June 2000 Archive').on('/archive/2000/06/') end it "should render the tag with interpolated date" do @page.should render('').as('/archive/2000/06/').on('/archive/2000/06') end it "should properly render the tag of an archive child with interpolated date" do @page.should render(' ').as('/archive/2000/01/01/article-z/ /archive/2000/01/02/early-post/ /archive/2000/01/03/z-post/ /archive/2000/01/04/a-post/ ').on('/archive/2000/01/') end end