aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2010-06-02 16:18:03 -0500
committerDavid Heinemeier Hansson <david@loudthinking.com>2010-06-02 16:18:03 -0500
commit942fe6514cc0db10c04fd2b46f8e1537beabef71 (patch)
tree8b9d057a91861756260aea7990308975305ab475 /railties/test/generators
parent02512914ae547eb664a78c0f6084b121d5283a61 (diff)
parentffe001f19dbbd9e697f6300650779f5e1391ce1e (diff)
downloadrails-942fe6514cc0db10c04fd2b46f8e1537beabef71.tar.gz
rails-942fe6514cc0db10c04fd2b46f8e1537beabef71.tar.bz2
rails-942fe6514cc0db10c04fd2b46f8e1537beabef71.zip
Merge branch 'master' of github.com:rails/rails
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/generators_test_helper.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/railties/test/generators/generators_test_helper.rb b/railties/test/generators/generators_test_helper.rb
index d8bdb344f2..4a5a9b2932 100644
--- a/railties/test/generators/generators_test_helper.rb
+++ b/railties/test/generators/generators_test_helper.rb
@@ -1,4 +1,6 @@
require 'abstract_unit'
+require 'rails/generators'
+require 'rails/generators/test_case'
module Rails
def self.root
@@ -8,8 +10,9 @@ end
Rails.application.config.root = Rails.root
Rails.application.config.generators.templates = [File.join(Rails.root, "lib", "templates")]
-require 'rails/generators'
-require 'rails/generators/test_case'
+# Call configure to load the settings from
+# Rails.application.config.generators to Rails::Generators
+Rails::Generators.configure!
require 'active_record'
require 'action_dispatch'