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
|
end
|
||||||
task :default => ["display:notice"]
|
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|
|
ADAPTERS.each do |adapter|
|
||||||
namespace :test do
|
namespace :test do
|
||||||
desc "Runs #{adapter} database tests."
|
desc "Runs #{adapter} database tests."
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
require "seamless_database_pool"
|
||||||
require "active_record/connection_adapters/seamless_database_pool_adapter"
|
require "active_record/connection_adapters/seamless_database_pool_adapter"
|
||||||
require "activerecord-import/adapters/mysql_adapter"
|
require "activerecord-import/adapters/mysql_adapter"
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
ENV["ARE_DB"] = "mysql2"
|
ENV["ARE_DB"] = "mysql2"
|
||||||
|
|
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
|
<<: *common
|
||||||
adapter: mysql2
|
adapter: mysql2
|
||||||
|
|
||||||
|
seamless_database_pool:
|
||||||
|
<<: *common
|
||||||
|
adapter: seamless_database_pool
|
||||||
|
pool_adapter: mysql2
|
||||||
|
master:
|
||||||
|
host: localhost
|
||||||
|
|
||||||
postgresql:
|
postgresql:
|
||||||
<<: *common
|
<<: *common
|
||||||
username: postgres
|
username: postgres
|
||||||
|
|
Loading…
Reference in a new issue