Skip to content

Commit

Permalink
clarify page sorting test
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed Dec 19, 2013
1 parent a6e1c40 commit 45ee9f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/test_site.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ def generate(site)
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)
Expand Down

0 comments on commit 45ee9f8

Please sign in to comment.