diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-03 18:58:40 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-03 18:58:40 -0800 |
commit | a3d5274e67c841a6fdc9f9acb9e1b6bbc351dd28 (patch) | |
tree | 78b1ab39446198e36b994215eacb1138438322ba /railties/test/application | |
parent | d627c932bdc5c0e2911e39cfb38952c29dab7afc (diff) | |
download | rails-a3d5274e67c841a6fdc9f9acb9e1b6bbc351dd28.tar.gz rails-a3d5274e67c841a6fdc9f9acb9e1b6bbc351dd28.tar.bz2 rails-a3d5274e67c841a6fdc9f9acb9e1b6bbc351dd28.zip |
Configure generator when needed rather than during initialization
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/generators_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/application/generators_test.rb b/railties/test/application/generators_test.rb index bfbf1ffd16..ccbcd84176 100644 --- a/railties/test/application/generators_test.rb +++ b/railties/test/application/generators_test.rb @@ -1,5 +1,4 @@ require "isolation/abstract_unit" -RAILS_GENERATORS = true module ApplicationTests class GeneratorsTest < Test::Unit::TestCase @@ -47,6 +46,7 @@ module ApplicationTests end # Initialize the application Rails.initialize! + Rails::Generators.configure! assert_equal :rspec, Rails::Generators.options[:rails][:test_framework] assert_equal "-w", Rails::Generators.aliases[:rails][:test_framework] @@ -59,6 +59,7 @@ module ApplicationTests end # Initialize the application Rails.initialize! + Rails::Generators.configure! assert_equal Thor::Base.shell, Thor::Shell::Basic end |