提交 8aabdc69 编写于 作者: V Vijay Dev

Merge pull request #3357 from rahul100885/rahul100885_ws

Added test case for postgresql database
......@@ -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/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册