Skip to content
Browse files

Put together tests for seamless_database_pool adapter

  • Loading branch information...
1 parent 23a0737 commit 1d9b30cf83efee2424d1acddd9d002f5156aebe5 @spectator spectator committed Aug 22, 2012
View
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."
View
1 lib/activerecord-import/active_record/adapters/seamless_database_pool_adapter.rb
@@ -1,3 +1,4 @@
+require "seamless_database_pool"
require "active_record/connection_adapters/seamless_database_pool_adapter"
require "activerecord-import/adapters/mysql_adapter"
View
2 test/adapters/mysql2.rb
@@ -1 +1 @@
-ENV["ARE_DB"] = "mysql2"
+ENV["ARE_DB"] = "mysql2"
View
1 test/adapters/seamless_database_pool.rb
@@ -0,0 +1 @@
+ENV["ARE_DB"] = "seamless_database_pool"
View
7 test/database.yml.sample
@@ -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

0 comments on commit 1d9b30c

Please sign in to comment.
Something went wrong with that request. Please try again.