Permalink
Browse files

Use load_generators instead.

  • Loading branch information...
1 parent 3b2ee3b commit 460ce7d7eac8e16e49011534e52306f3f14ca0b2 @josevalim josevalim committed May 25, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 railties/test/application/generators_test.rb
@@ -68,8 +68,7 @@ def with_bare_config
# Initialize the application
require "#{app_path}/config/environment"
- require "rails/generators"
- Rails::Generators.configure!(Rails.application.config.generators)
+ Rails.application.load_generators
assert_equal :rspec, Rails::Generators.options[:rails][:test_framework]
assert_equal "-w", Rails::Generators.aliases[:rails][:test_framework]
@@ -84,8 +83,7 @@ def with_bare_config
# Initialize the application
require "#{app_path}/config/environment"
- require "rails/generators"
- Rails::Generators.configure!(Rails.application.config.generators)
+ Rails.application.load_generators
assert_equal Thor::Base.shell, Thor::Shell::Basic
end

0 comments on commit 460ce7d

Please sign in to comment.