Skip to content

Commit

Permalink
Fixed small bug in test_generated_site and updating history with late…
Browse files Browse the repository at this point in the history
…st fixes
  • Loading branch information
qrush committed Jun 23, 2009
1 parent e39810c commit 150ff1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions History.txt
Expand Up @@ -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
Expand Down
7 changes: 2 additions & 5 deletions test/test_generated_site.rb
Expand Up @@ -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
Expand Down

0 comments on commit 150ff1e

Please sign in to comment.