From 150ff1e5e4c0eb60deb80e58736cff2e1d6993f8 Mon Sep 17 00:00:00 2001 From: Nick Quaranto Date: Tue, 23 Jun 2009 08:09:44 -0400 Subject: [PATCH] Fixed small bug in test_generated_site and updating history with latest fixes --- History.txt | 5 +++++ test/test_generated_site.rb | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/History.txt b/History.txt index fea0c8fe..78d69bac 100644 --- a/History.txt +++ b/History.txt @@ -2,6 +2,11 @@ * Bug Fixes * Fixing Ruby 1.9 issue that requires to_s on the err object [github.com/Chrononaut] * Fixes for pagination and ordering posts on the same day [github.com/ujh] + * Made pages respect permalinks style and permalinks in yml front matter [github.com/eugenebolshakov] + * Index.html file should always have index.html permalink [github.com/eugenebolshakov] + * Added trailing slash to pretty permalink style so Apache is happy [github.com/eugenebolshakov] + * Bad markdown processor in config fails sooner and with better message [github.com/gcnovus] + * Allow CRLFs in yaml frontmatter [github.com/juretta] == 0.5.1 / 2009-05-06 * Major Enhancements diff --git a/test/test_generated_site.rb b/test/test_generated_site.rb index b9eeee24..45b2cc84 100644 --- a/test/test_generated_site.rb +++ b/test/test_generated_site.rb @@ -17,11 +17,8 @@ class TestGeneratedSite < Test::Unit::TestCase assert @index.include?("#{@site.posts.size} Posts") end - should "render post.content" do - latest_post = Dir[source_dir('_posts', '*')].sort.last - post = Post.new(@site, source_dir, '', File.basename(latest_post)) - post.transform - assert @index.include?(post.content) + should "render latest post's content" do + assert @index.include?(@site.posts.last.content) end should "hide unpublished posts" do