test/test_post.rb in zzot-semi-static-0.0.5 vs test/test_post.rb in zzot-semi-static-0.0.6

- old
+ new

@@ -28,11 +28,11 @@ with_test_site_post('2008-11-24-lighting-up') do |site,post| # Make sure we got what we asked for assert_equal '2008-11-24-lighting-up', post.name # Test the various path/uri attributes - assert_equal '2008-11-24-lighting-up.markdown', post.source_path + assert_equal '2008/11/24/lighting-up.markdown', post.source_path assert_equal '2008/11/24', post.output_dir assert_equal '2008/11/24/lighting-up.html', post.output_path assert_equal '/2008/11/24/lighting-up.html', post.uri # Test that the metadata was processed correctly @@ -49,17 +49,17 @@ assert_render_equal_ref 'test_post/lighting-up.html', post end end def test_post_impressions - # with_test_site { |site| fail site.posts.to_yaml } + # with_test_site { |site| fail site.posts.names.keys.to_yaml } with_test_site_post('2008-11-26-impressions') do |site,post| # Make sure we got what we asked for assert_equal '2008-11-26-impressions', post.name # Test the various path/uri attributes - assert_equal '2008-11-26-impressions.md', post.source_path + assert_equal '2008/11/26/impressions.md', post.source_path assert_equal '2008/11/26', post.output_dir assert_equal '2008/11/26/impressions.html', post.output_path assert_equal '/2008/11/26/impressions.html', post.uri # Test that the metadata was processed correctly @@ -77,10 +77,10 @@ with_test_site_post('2008-12-04-the-working-mans-typeface') do |site,post| # Make sure we got what we asked for assert_equal '2008-12-04-the-working-mans-typeface', post.name # Test the various path/uri attributes - assert_equal '2008-12-04-the-working-mans-typeface.html', post.source_path + assert_equal '2008/12/04/the-working-mans-typeface.html', post.source_path assert_equal '2008/12/04', post.output_dir assert_equal '2008/12/04/the-working-mans-typeface.html', post.output_path assert_equal '/2008/12/04/the-working-mans-typeface.html', post.uri # Test that the metadata was processed correctly