diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-19 11:27:24 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-23 14:49:04 -0700 |
commit | 9cfd1d44915f4615bbb760198cd01bf4dfc69f5a (patch) | |
tree | 654db57da836f7a5d6cb96f80e8e29b48682128d /railties/test | |
parent | f2aea4d3eac467b85a63593ba7e2de28b2a2eb0a (diff) | |
download | rails-9cfd1d44915f4615bbb760198cd01bf4dfc69f5a.tar.gz rails-9cfd1d44915f4615bbb760198cd01bf4dfc69f5a.tar.bz2 rails-9cfd1d44915f4615bbb760198cd01bf4dfc69f5a.zip |
Get more tests to pass
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generator_lookup_test.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/railties/test/generator_lookup_test.rb b/railties/test/generator_lookup_test.rb index b650f304ed..b67087e5ea 100644 --- a/railties/test/generator_lookup_test.rb +++ b/railties/test/generator_lookup_test.rb @@ -7,9 +7,11 @@ class GeneratorLookupTest < Test::Unit::TestCase # We need to add our testing plugin directory to the plugin paths so # the locator knows where to look for our plugins @configuration.plugin_paths += @fixture_dirs.map{|fd| plugin_fixture_path(fd)} - @initializer = Rails::Initializer.new(@configuration) - @initializer.add_plugin_load_paths - @initializer.load_plugins + @initializer = Rails::Initializer.default + @initializer.config = @configuration + @initializer.run(:add_plugin_load_paths) + @initializer.run(:load_plugins) + @initializer.run(:set_root_path) load 'rails_generator.rb' require 'rails_generator/scripts' end |