Fixed small bug in test_generated_site and updating history with latest fixes

This commit is contained in:
Nick Quaranto
2009-06-23 08:09:44 -04:00
parent e39810c984
commit 150ff1e5e4
2 changed files with 7 additions and 5 deletions

View File

@@ -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