Skip to content

Commit

Permalink
Most filesystems don't guarantee directory listing order, so sort glo…
Browse files Browse the repository at this point in the history
…b results.
  • Loading branch information
William Josephson committed Apr 3, 2012
1 parent 8c6a792 commit 1c81ea7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/jasmine/headless/files_list.rb
Expand Up @@ -255,7 +255,8 @@ def config?
end end


def expanded_dir(path) def expanded_dir(path)
Dir[path].find_all { |file| file_list = Dir.glob(path).sort
file_list.find_all { |file|
file[extension_filter] && !alert_if_bad_format?(file) file[extension_filter] && !alert_if_bad_format?(file)
}.collect { }.collect {
|file| File.expand_path(file) |file| File.expand_path(file)
Expand Down

0 comments on commit 1c81ea7

Please sign in to comment.