lib/js_test_driver/config.rb in js-test-driver-rails-0.4.2 vs lib/js_test_driver/config.rb in js-test-driver-rails-0.4.3
- old
+ new
@@ -176,10 +176,10 @@
return File.expand_path(File.join('..', '..', 'vendor'), this_directory)
end
def expand_globs(paths)
with_expanded_paths = paths.map{|path| File.expand_path(path)}
- return with_expanded_paths.map{|path| path.include?('*') ? Dir[path] : path}.flatten
+ return with_expanded_paths.map{|path| path.include?('*') ? Dir[path].sort : path}.flatten
end
def fixture_file_name(fixture)
File.expand_path(File.join(config_dir, "fixtures", fixture.namespace, "#{fixture.name}.js"))
end