mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
Fixed small bug in test_generated_site and updating history with latest fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user