Sha256: 3e1095b661896ebaf194b773f3ad4a55be78535fa95001ba49aad7fdbb557993
Contents?: true
Size: 1.08 KB
Versions: 7
Compression:
Stored size: 1.08 KB
Contents
require File.expand_path("../../spec_helper", __FILE__) describe ArchiveDayIndexPage do dataset :archive before :each do @page = pages(:day_index) end its(:allowed_children){ should == [] } 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-y ').on('/archive/2001/02/02/') @page.should render('<r:archive:children:each><r:slug /> </r:archive:children:each>').as('article-y ').on('/archive/2001/02/02') end it "should render the <r:title /> tag with interpolated date" do @page.should render('<r:title />').as('June 09, 2000 Archive').on('/archive/2000/06/09/') end it "should render the <r:breadcrumb /> tag with interpolated date" do @page.should render('<r:breadcrumb />').as('June 09, 2000 Archive').on('/archive/2000/06/09/') end it "should render the <r:path /> tag with interpolated date" do @page.should render('<r:path />').as('/archive/2000/06/09/').on('/archive/2000/06/09') end end
Version data entries
7 entries across 7 versions & 2 rubygems