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:
parent
3b2ee3b2bc
commit
460ce7d7ea
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue