From 45ee9f814a7816cb3b9cdfeec367487f745aca38 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Thu, 19 Dec 2013 13:46:43 -0500 Subject: [PATCH] clarify page sorting test --- test/test_site.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/test_site.rb b/test/test_site.rb index bf517ba1..a530f9d0 100644 --- a/test/test_site.rb +++ b/test/test_site.rb @@ -154,9 +154,7 @@ class TestSite < Test::Unit::TestCase assert_equal @site.generators.sort_by(&:class).map{|g|g.class.priority}, @site.generators.map{|g|g.class.priority} end - 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 + should "sort pages alphabetically" do 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)