Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3357 from rahul100885/rahul100885_ws

Added test case for postgresql database
  • Loading branch information...
commit 8aabdc69b7c498770e4c2864dad3e2790a40d10f 2 parents 139562f + d21405a
@vijaydev vijaydev authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 railties/test/generators/app_generator_test.rb
View
10 railties/test/generators/app_generator_test.rb
@@ -143,6 +143,16 @@ def test_config_another_database
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/
Please sign in to comment.
Something went wrong with that request. Please try again.