Most filesystems don't guarantee directory listing order, so sort glob results.
This commit is contained in:
parent
8c6a792960
commit
1c81ea7286
@ -255,7 +255,8 @@ module Jasmine::Headless
|
|||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user