Making the generated site test happy when doing a glob on Ubuntu

This commit is contained in:
Nick Quaranto 2009-04-22 22:35:53 -04:00
parent 2e187864cf
commit 45b46722bf
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class TestGeneratedSite < Test::Unit::TestCase
end
should "render post.content" do
latest_post = Dir[source_dir('_posts', '*')].last
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)