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

Version Path
radiant-1.0.0 ruby-debug/ruby/1.8/gems/radiant-archive-extension-1.0.7/spec/models/archive_day_index_page_spec.rb
radiant-archive-extension-1.0.7 spec/models/archive_day_index_page_spec.rb
radiant-archive-extension-1.0.6 spec/models/archive_day_index_page_spec.rb
radiant-archive-extension-1.0.5 spec/models/archive_day_index_page_spec.rb
radiant-archive-extension-1.0.4 spec/models/archive_day_index_page_spec.rb
radiant-archive-extension-1.0.3 spec/models/archive_day_index_page_spec.rb
radiant-archive-extension-1.0.2 spec/models/archive_day_index_page_spec.rb