Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Most filesystems don't guarantee directory listing order, so sort glo…

…b results.
  • Loading branch information...
commit 1c81ea7286457df6fa16149db56900a43210faaa 1 parent 8c6a792
authored April 02, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  lib/jasmine/headless/files_list.rb
3  lib/jasmine/headless/files_list.rb
@@ -255,7 +255,8 @@ def config?
255 255
     end
256 256
 
257 257
     def expanded_dir(path)
258  
-      Dir[path].find_all { |file|
  258
+      file_list = Dir.glob(path).sort
  259
+      file_list.find_all { |file|
259 260
         file[extension_filter] && !alert_if_bad_format?(file)
260 261
       }.collect {
261 262
         |file| File.expand_path(file)

0 notes on commit 1c81ea7

Please sign in to comment.
Something went wrong with that request. Please try again.