diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/generators_test.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/railties/test/application/generators_test.rb b/railties/test/application/generators_test.rb index daacea4720..1ca9515335 100644 --- a/railties/test/application/generators_test.rb +++ b/railties/test/application/generators_test.rb @@ -68,8 +68,7 @@ module ApplicationTests # 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 @@ module ApplicationTests # 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 |