Sha256: fe4918a210d1b1fa6dd97f095af97c44a91023d418ac676d021a2c9e167be842

Contents?: true

Size: 676 Bytes

Versions: 30

Compression:

Stored size: 676 Bytes

Contents

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

class ArchiveYearIndexPageTest < Test::Unit::TestCase
  fixtures :pages
  test_helper :pages, :archive_index, :render
  
  def setup
    @page = pages(:year_index)
  end
  
  def test_children_tag
    assert_renders 'article article-2 article-3 article-4 ', '<r:archive:children:each><r:slug /> </r:archive:children:each>', '/archive/2000/'
    assert_renders 'article article-2 article-3 article-4 ', '<r:archive:children:each><r:slug /> </r:archive:children:each>', '/archive/2000'
  end
  
  def test_title_tag
    assert_renders '2000 Archive', '<r:title />', '/archive/2000/'
  end
    
  include ArchiveIndexTests

end

Version data entries

30 entries across 30 versions & 3 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiantcms-couchrest_model-0.2.2 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiantcms-couchrest_model-0.2.1 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiantcms-couchrest_model-0.2 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiantcms-couchrest_model-0.1.9 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiantcms-couchrest_model-0.1.8 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiantcms-couchrest_model-0.1.7 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiantcms-couchrest_model-0.1.6 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiantcms-couchrest_model-0.1.5 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiantcms-couchrest_model-0.1.4 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiant-0.7.2 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiant-0.9.1 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiant-0.8.2 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiant-0.9.0.rc2 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiant-rc-0.9.0 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiant-0.8.1 vendor/extensions/archive/test/unit/archive_year_index_page_test.rb
radiant-0.6.0 test/unit/archive_year_index_page_test.rb
radiant-0.6.1 test/unit/archive_year_index_page_test.rb
radiant-0.6.2 test/unit/archive_year_index_page_test.rb
radiant-0.6.3 test/unit/archive_year_index_page_test.rb