Permalink
Browse files

Tests added for jdbc option

  • Loading branch information...
1 parent 2fc22bf commit fb495cd0c24f613a73b8009e37161f4c3d166b7a @arunagw arunagw committed Jun 22, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 railties/test/generators/app_generator_test.rb
@@ -186,6 +186,13 @@ 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 "config/database.yml", /mssql/
+ assert_file "Gemfile", /^gem\s+["']activerecord-jdbc-adapter["']$/
+ end
+
def test_config_database_is_not_added_if_skip_active_record_is_given
run_generator [destination_root, "--skip-active-record"]
assert_no_file "config/database.yml"

0 comments on commit fb495cd

Please sign in to comment.