Sha256: 8ef264226a7559bb9c13e83ab0b09a7c9af4ad0e94d4354a984f289a29af9211

Contents?: true

Size: 708 Bytes

Versions: 19

Compression:

Stored size: 708 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe ArchiveMonthIndexPage do
  dataset :archive
  
  before :each do
    @page = pages(:month_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/02/')
    @page.should render('<r:archive:children:each><r:slug /> </r:archive:children:each>').as('article-2 ').on('/archive/2001/02')
  end
  
  it "should render the <r:title /> tag with interpolated date" do
    @page.should render('<r:title />').as('June 2000 Archive').on('/archive/2000/06/')
  end
end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiantcms-couchrest_model-0.2.2 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiantcms-couchrest_model-0.2.1 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiantcms-couchrest_model-0.2 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiantcms-couchrest_model-0.1.9 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiantcms-couchrest_model-0.1.8 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiantcms-couchrest_model-0.1.7 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiantcms-couchrest_model-0.1.6 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiantcms-couchrest_model-0.1.5 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiantcms-couchrest_model-0.1.4 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiant-0.7.2 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiant-0.9.1 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiant-0.8.2 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiant-0.9.0.rc2 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiant-rc-0.9.0 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiant-0.8.1 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiant-0.7.0 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiant-0.7.1 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb
radiant-0.8.0 vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb