diff options
author | Carlhuda <carlhuda@engineyard.com> | 2010-01-27 17:39:11 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-01-28 09:55:29 -0800 |
commit | c7c3eac762ed46f1eb165f666916ed52abd2ab3f (patch) | |
tree | 55b0d3139f0922f3a0865bc490498fc794003ab4 /railties/test/application | |
parent | 3aa1ea1ae4baa4a03d03644e798eeb98a4745785 (diff) | |
download | rails-c7c3eac762ed46f1eb165f666916ed52abd2ab3f.tar.gz rails-c7c3eac762ed46f1eb165f666916ed52abd2ab3f.tar.bz2 rails-c7c3eac762ed46f1eb165f666916ed52abd2ab3f.zip |
Test::Unit Railtie
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/generators_test.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/railties/test/application/generators_test.rb b/railties/test/application/generators_test.rb index 1e6e30e9c3..13fbdfb417 100644 --- a/railties/test/application/generators_test.rb +++ b/railties/test/application/generators_test.rb @@ -19,8 +19,14 @@ module ApplicationTests yield app_const.config end + def with_bare_config + require "rails" + require "rails/generators" + yield app_const.config + end + test "generators default values" do - with_config do |c| + with_bare_config do |c| assert_equal(true, c.generators.colorize_logging) assert_equal({}, c.generators.aliases) assert_equal({}, c.generators.options) @@ -75,7 +81,7 @@ module ApplicationTests end test "generators with hashes for options and aliases" do - with_config do |c| + with_bare_config do |c| c.generators do |g| g.orm :datamapper, :migration => false g.plugin :aliases => { :generator => "-g" }, |