Sha256: f50559cbf3f6523267e72576d8d23b7196ca379b868fd8f55a44397f96f3d4be
Contents?: true
Size: 691 Bytes
Versions: 19
Compression:
Stored size: 691 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe ArchiveYearIndexPage do dataset :archive before :each do @page = pages(:year_index) end it_should_behave_like "Archive index page" it "should render the <r:archive:children:each /> tag" do @page.should render('<r:archive:children:each><r:slug /> </r:archive:children:each>').as('article-2 ').on('/archive/2001/') @page.should render('<r:archive:children:each><r:slug /> </r:archive:children:each>').as('article-2 ').on('/archive/2001') end it "should render the <r:title /> tag with interpolated date" do @page.should render('<r:title />').as('2000 Archive').on('/archive/2000') end end
Version data entries
19 entries across 19 versions & 3 rubygems