Permalink
Browse files

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

  • Loading branch information...
1 parent 2e18786 commit 45b46722bf9ef4c0ff922c366f520a05f5510ac9 @qrush qrush committed Apr 23, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/test_generated_site.rb
@@ -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)

0 comments on commit 45b4672

Please sign in to comment.