diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-07 20:59:26 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-07 20:59:26 +0100 |
commit | 19e7c524d2831726a51a973b0dc211725496e9d8 (patch) | |
tree | be58b9cb2762c2707c27f10f1a5d880ec0d70e86 /railties/test/generators | |
parent | 423e2acbb7110961a2774ccd191261c031b83d7a (diff) | |
download | rails-19e7c524d2831726a51a973b0dc211725496e9d8.tar.gz rails-19e7c524d2831726a51a973b0dc211725496e9d8.tar.bz2 rails-19e7c524d2831726a51a973b0dc211725496e9d8.zip |
Ensure config/application.rb also uses app_const instead of app_name.classify.
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 27537f39b2..85081609de 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -61,7 +61,8 @@ class AppGeneratorTest < GeneratorsTestCase def test_invalid_application_name_is_fixed silence(:stdout){ Rails::Generators::AppGenerator.start [File.join(destination_root, "things-43")] } - assert_file "things-43/config/environment.rb", /Things43::Application/ + assert_file "things-43/config/environment.rb", /Things43::Application\.initialize!/ + assert_file "things-43/config/application.rb", /^module Things43$/ end def test_config_database_is_added_by_default |