From a6e1c400511496b06a5d5f1565a89b240d33e137 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Thu, 19 Dec 2013 01:05:00 -0500 Subject: [PATCH] link to Stack Overflow answer re: Dir sorting --- test/test_site.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_site.rb b/test/test_site.rb index 09d4ecff..bf517ba1 100644 --- a/test/test_site.rb +++ b/test/test_site.rb @@ -156,6 +156,7 @@ class TestSite < Test::Unit::TestCase should "sort pages in a consistent way" do # The order that files are returned differs across operating systems, so ensure that they're being sorted after the fact. + # http://stackoverflow.com/a/5529966/358804 stub.proxy(Dir).entries { |entries| entries.reverse } @site.process sorted_pages = %w(.htaccess about.html bar.html contacts.html deal.with.dots.html foo.md index.html index.html sitemap.xml symlinked-file)