1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use load_generators instead.

This commit is contained in:
José Valim 2011-05-25 09:30:41 +02:00
parent 3b2ee3b2bc
commit 460ce7d7ea

View file

@ -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