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 91320f2 commit 2b4eb586efa240dd985d8b5fe918084ab17fae2b @FooBarWidget FooBarWidget committed with NZKoz Jul 9, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 2b4eb58

Please sign in to comment.