Permalink
Browse files

Test added for jdbc-adapter

  • Loading branch information...
1 parent 6404f8a commit b7bce739b1d57848c693c94b377fb56fccc74399 @arunagw arunagw committed Jun 22, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 railties/test/generators/app_generator_test.rb
@@ -153,6 +153,12 @@ def test_config_jdbcpostgresql_database
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"

0 comments on commit b7bce73

Please sign in to comment.