0
@@ -145,11 +145,33 @@ class MephistoControllerTest < Test::Unit::TestCase
0
def test_should_show_navigation_on_paged_sections
0
- assert_tag
:tag => 'ul', :attributes => { :id => 'nav' },
0
+ assert_tag
'ul', :attributes => { :id => 'nav' },
0
:children => { :count => 3, :only => { :tag => 'li' } }
0
- assert_tag
:tag => 'ul', :attributes => { :id => 'nav' },
0
+ assert_tag
'ul', :attributes => { :id => 'nav' },
0
:descendant => { :tag => 'a', :attributes => { :class => 'selected' } }
0
- assert_tag :tag => 'a', :attributes => { :class => 'selected' }, :content => 'Home'
0
+ assert_tag 'a', :attributes => { :class => 'selected' }, :content => 'Home'
0
+ def test_should_set_home_page_on_paged_sections
0
+ assert_equal 3, liquid(:pages).size
0
+ [true, false, false].each_with_index do |expected, i|
0
+ assert_equal expected, liquid(:pages)[i][:is_page_home]
0
+ def test_should_set_paged_permalinks
0
+ assert_tag 'a', :attributes => { :href => '/about', :class => 'selected' }, :content => 'Home'
0
+ assert_tag 'a', :attributes => { :href => '/about/about-this-page' }, :content => 'About'
0
+ assert_tag 'a', :attributes => { :href => '/about/the-site-map' }, :content => 'The Site Map'
0
+ def test_should_set_paged_permalinks
0
+ get_mephisto 'about/the-site-map'
0
+ assert_tag 'a', :attributes => { :href => '/about' }, :content => 'Home'
0
+ assert_tag 'a', :attributes => { :href => '/about/about-this-page' }, :content => 'About'
0
+ assert_tag 'a', :attributes => { :href => '/about/the-site-map', :class => 'selected' }, :content => 'The Site Map'
0
def test_should_show_comments_form
0
@@ -162,7 +184,7 @@ class MephistoControllerTest < Test::Unit::TestCase
0
assert_tag :tag => 'form', :descendant => {
0
:tag => 'input', :attributes => { :type => 'text', :id => 'comment_author_email', :name => 'comment[author_email]' } }
0
assert_tag :tag => 'form', :descendant => {
0
- :tag => 'textarea', :attributes => { :id => 'comment_body',
:name => 'comment[body]' } }
0
+ :tag => 'textarea', :attributes => { :id => 'comment_body',
:name => 'comment[body]' } }
0
def test_should_show_daily_entries
Comments
No one has commented yet.