Fixed small bug in test_generated_site and updating history with latest fixes
This commit is contained in:
parent
e39810c984
commit
150ff1e5e4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue