Permalink
Browse files

Plugin locator: sort directory listing because we can't assume that t…

…he OS will do it for us. This fixes some unit test failures.
  • Loading branch information...
1 parent ae378b9 commit 011cbbc1dabfc0f3e4221180746d3008c823ca7f @FooBarWidget FooBarWidget committed with NZKoz Jul 9, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/plugin/locator.rb
View
2 railties/lib/rails/plugin/locator.rb
@@ -63,7 +63,7 @@ def create_plugin(path)
# => <Rails::Plugin name: 'acts_as_chunky_bacon' ... >
#
def locate_plugins_under(base_path)
- Dir.glob(File.join(base_path, '*')).inject([]) do |plugins, path|
+ Dir.glob(File.join(base_path, '*')).sort.inject([]) do |plugins, path|
if plugin = create_plugin(path)
plugins << plugin
elsif File.directory?(path)

0 comments on commit 011cbbc

Please sign in to comment.