diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-10-25 13:43:47 -0700 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-10-25 13:43:47 -0700 |
commit | 8aabdc69b7c498770e4c2864dad3e2790a40d10f (patch) | |
tree | 0ad3d35727701c66c2eb7d86602151f719bfd8ab /railties/test | |
parent | 139562f241136ca89209ddaffaf10b0b3a599b39 (diff) | |
parent | d21405a07ce9264ed92b9c7385141e05ccea565c (diff) | |
download | rails-8aabdc69b7c498770e4c2864dad3e2790a40d10f.tar.gz rails-8aabdc69b7c498770e4c2864dad3e2790a40d10f.tar.bz2 rails-8aabdc69b7c498770e4c2864dad3e2790a40d10f.zip |
Merge pull request #3357 from rahul100885/rahul100885_ws
Added test case for postgresql database
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 4b74bd6a4b..955ed09361 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -143,6 +143,16 @@ class AppGeneratorTest < Rails::Generators::TestCase end end + def test_config_postgresql_database + run_generator([destination_root, "-d", "postgresql"]) + assert_file "config/database.yml", /postgresql/ + unless defined?(JRUBY_VERSION) + assert_file "Gemfile", /^gem\s+["']pg["']$/ + else + assert_file "Gemfile", /^gem\s+["']activerecord-jdbcpostgresql-adapter["']$/ + end + end + def test_config_jdbcmysql_database run_generator([destination_root, "-d", "jdbcmysql"]) assert_file "config/database.yml", /mysql/ |