aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorVishnu Atrai <me@vishnuatrai.com>2011-04-26 00:54:02 +0530
committerVishnu Atrai <me@vishnuatrai.com>2011-04-26 01:00:37 +0530
commit16d3266144caeaca6385ed77ecd7d4e620160dec (patch)
tree7294854693a7a27455416cf437708f48b77f2072 /railties/test/generators
parent12427c8dea1e817d7badc06f1f21af989c0f56ea (diff)
downloadrails-16d3266144caeaca6385ed77ecd7d4e620160dec.tar.gz
rails-16d3266144caeaca6385ed77ecd7d4e620160dec.tar.bz2
rails-16d3266144caeaca6385ed77ecd7d4e620160dec.zip
jdbcpostgresql support added into template.
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/app_generator_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 839f75d963..1902484301 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -143,6 +143,12 @@ class AppGeneratorTest < Rails::Generators::TestCase
assert_file "Gemfile", /^gem\s+["']activerecord-jdbcsqlite3-adapter["']$/
end
+ def test_config_jdbcpostgresql_database
+ run_generator([destination_root, "-d", "jdbcpostgresql"])
+ assert_file "config/database.yml", /jdbcpostgresql/
+ assert_file "Gemfile", /^gem\s+["']activerecord-jdbcpostgresql-adapter["']$/
+ end
+
def test_generator_if_skip_active_record_is_given
run_generator [destination_root, "--skip-active-record"]
assert_no_file "config/database.yml"