Put together tests for seamless_database_pool adapter
This commit is contained in:
parent
23a07371dd
commit
1d9b30cf83
2
Rakefile
2
Rakefile
|
@ -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."
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
require "seamless_database_pool"
|
||||
require "active_record/connection_adapters/seamless_database_pool_adapter"
|
||||
require "activerecord-import/adapters/mysql_adapter"
|
||||
|
||||
|
|
1
test/adapters/seamless_database_pool.rb
Normal file
1
test/adapters/seamless_database_pool.rb
Normal file
|
@ -0,0 +1 @@
|
|||
ENV["ARE_DB"] = "seamless_database_pool"
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue