aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorArun Agrawal <arun@fromjaipur.com>2011-06-22 08:04:18 +0530
committerArun Agrawal <arun@fromjaipur.com>2011-06-22 08:04:18 +0530
commitb7bce739b1d57848c693c94b377fb56fccc74399 (patch)
tree310d706263722ffb2360a3e87df0bc13aea007ac /railties/test/generators
parent6404f8a194dd56e7167d63b385cab727f378ec8d (diff)
downloadrails-b7bce739b1d57848c693c94b377fb56fccc74399.tar.gz
rails-b7bce739b1d57848c693c94b377fb56fccc74399.tar.bz2
rails-b7bce739b1d57848c693c94b377fb56fccc74399.zip
Test added for jdbc-adapter
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 c31c65a27d..310d2782a9 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -153,6 +153,12 @@ class AppGeneratorTest < Rails::Generators::TestCase
assert_file "Gemfile", /^gem\s+["']activerecord-jdbcpostgresql-adapter["']$/
end
+ def test_config_jdbc_database
+ run_generator([destination_root, "-d", "jdbc"])
+ assert_file "config/database.yml", /jdbc/
+ assert_file "Gemfile", /^gem\s+["']activerecord-jdbc-adapter["']$/
+ end
+
def test_generator_if_skip_active_record_is_given
run_generator [destination_root, "--skip-active-record"]
assert_no_file "config/database.yml"