require File.dirname(__FILE__) + '/../spec_helper' describe ArchiveYearIndexPage do scenario :archive before :each do @page = pages(:year_index) end it_should_behave_like "Archive index page" it "should render the tag" do @page.should render(' ').as('article-2 ').on('/archive/2001/') @page.should render(' ').as('article-2 ').on('/archive/2001') end it "should render the tag with interpolated date" do @page.should render('').as('2000 Archive').on('/archive/2000') end end