diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-25 09:20:40 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-25 09:20:40 -0700 |
commit | 17fec021d196ffbd745c340f98b9cfbcdb16b2a8 (patch) | |
tree | e20068efe78bc674323bc4aec22ce5b4c6de1c7e /railties/test/generators | |
parent | 2fc8d7ea90c901600319d2ad4d3dbfece3ced410 (diff) | |
parent | 51854de52caa410862266a79b255132a0710aef0 (diff) | |
download | rails-17fec021d196ffbd745c340f98b9cfbcdb16b2a8.tar.gz rails-17fec021d196ffbd745c340f98b9cfbcdb16b2a8.tar.bz2 rails-17fec021d196ffbd745c340f98b9cfbcdb16b2a8.zip |
Merged pull request #300 from arunagw/jdbc_test.
Start Adding jdbcmysql support to new rails template.
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 58febfd9c7..839f75d963 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -131,6 +131,18 @@ class AppGeneratorTest < Rails::Generators::TestCase assert_file "Gemfile", /^gem\s+["']mysql2["']$/ end + def test_config_jdbcmysql_database + run_generator([destination_root, "-d", "jdbcmysql"]) + assert_file "config/database.yml", /jdbcmysql/ + assert_file "Gemfile", /^gem\s+["']activerecord-jdbcmysql-adapter["']$/ + end + + def test_config_jdbcsqlite3_database + run_generator([destination_root, "-d", "jdbcsqlite3"]) + assert_file "config/database.yml", /jdbcsqlite3/ + assert_file "Gemfile", /^gem\s+["']activerecord-jdbcsqlite3-adapter["']$/ + end + def test_generator_if_skip_active_record_is_given run_generator [destination_root, "--skip-active-record"] assert_no_file "config/database.yml" |