Put together tests for seamless_database_pool adapter

This commit is contained in:
Yury Velikanau 2012-08-22 19:50:37 -07:00
parent 23a07371dd
commit 1d9b30cf83
5 changed files with 11 additions and 2 deletions

View file

@ -36,7 +36,7 @@ namespace :display do
end
task :default => ["display:notice"]
ADAPTERS = %w(mysql mysql2 jdbcmysql postgresql sqlite3)
ADAPTERS = %w(mysql mysql2 jdbcmysql postgresql sqlite3 seamless_database_pool)
ADAPTERS.each do |adapter|
namespace :test do
desc "Runs #{adapter} database tests."

View file

@ -1,3 +1,4 @@
require "seamless_database_pool"
require "active_record/connection_adapters/seamless_database_pool_adapter"
require "activerecord-import/adapters/mysql_adapter"

View file

@ -0,0 +1 @@
ENV["ARE_DB"] = "seamless_database_pool"

View file

@ -13,6 +13,13 @@ mysql2:
<<: *common
adapter: mysql2
seamless_database_pool:
<<: *common
adapter: seamless_database_pool
pool_adapter: mysql2
master:
host: localhost
postgresql:
<<: *common
username: postgres