Permalink
Browse files

Fixed small bug in test_generated_site and updating history with late…

…st fixes
  • Loading branch information...
1 parent e39810c commit 150ff1e5e4c0eb60deb80e58736cff2e1d6993f8 @qrush qrush committed Jun 23, 2009
Showing with 7 additions and 5 deletions.
  1. +5 −0 History.txt
  2. +2 −5 test/test_generated_site.rb
View
@@ -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
@@ -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

0 comments on commit 150ff1e

Please sign in to comment.