lib/CLIntegracon/file_tree_spec.rb in clintegracon-0.4.1 vs lib/CLIntegracon/file_tree_spec.rb in clintegracon-0.5.0
- old
+ new
@@ -165,10 +165,10 @@
#
# @return [Array<Pathname>]
#
def glob_all(path=nil)
Dir.chdir path || '.' do
- Dir.glob("**/*", context.include_hidden_files? ? File::FNM_DOTMATCH : 0).map { |path|
+ Dir.glob("**/*", context.include_hidden_files? ? File::FNM_DOTMATCH : 0).sort.map { |path|
Pathname(path)
}
end
end