diff options
author | Jeremy W. Rowe <jeremy.w.rowe@gmail.com> | 2012-11-23 14:30:15 -0600 |
---|---|---|
committer | Jeremy W. Rowe <jeremy.w.rowe@gmail.com> | 2013-01-16 15:12:31 -0600 |
commit | c45980fe6e8200837b70482a177bbca87b654fdf (patch) | |
tree | 7094050710368e6a5a20a2d13ac59e92f93851a2 /railties/test | |
parent | 555cb0afb5a8a8e98fc982edb9e09dfaafd46380 (diff) | |
download | rails-c45980fe6e8200837b70482a177bbca87b654fdf.tar.gz rails-c45980fe6e8200837b70482a177bbca87b654fdf.tar.bz2 rails-c45980fe6e8200837b70482a177bbca87b654fdf.zip |
Fixes improper database name when a '.' is included while creating a new rails
application. EG: `rails new something.awesome.com`
Conflicts:
railties/CHANGELOG.md
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index ee93dc49cd..b2deeb011d 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -164,6 +164,11 @@ class AppGeneratorTest < Rails::Generators::TestCase end end + def test_config_database_app_name_with_period + run_generator [File.join(destination_root, "common.usage.com"), "-d", "postgresql"] + assert_file "common.usage.com/config/database.yml", /common_usage_com/ + end + def test_config_postgresql_database run_generator([destination_root, "-d", "postgresql"]) assert_file "config/database.yml", /postgresql/ |