Most filesystems don't guarantee directory listing order, so sort glob results.

This commit is contained in:
William Josephson 2012-04-02 22:12:45 -04:00
parent 8c6a792960
commit 1c81ea7286

View File

@ -255,7 +255,8 @@ module Jasmine::Headless
end
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)
}.collect {
|file| File.expand_path(file)