aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-08-31 14:54:43 +0100
committerJon Leighton <j@jonathanleighton.com>2012-08-31 15:56:28 +0100
commite96558f8138d01ea64096f152f32c480af0861e6 (patch)
treecd6644b78ea57710a981d2d127904194962a9dc8 /activerecord/test/cases
parentba1544d71628abff2777c9c514142d7e9a159111 (diff)
downloadrails-e96558f8138d01ea64096f152f32c480af0861e6.tar.gz
rails-e96558f8138d01ea64096f152f32c480af0861e6.tar.bz2
rails-e96558f8138d01ea64096f152f32c480af0861e6.zip
Cache the connection pool for a given class
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/connection_adapters/connection_handler_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/connection_adapters/connection_handler_test.rb b/activerecord/test/cases/connection_adapters/connection_handler_test.rb
index 2286ef1391..e1579d037f 100644
--- a/activerecord/test/cases/connection_adapters/connection_handler_test.rb
+++ b/activerecord/test/cases/connection_adapters/connection_handler_test.rb
@@ -37,6 +37,8 @@ module ActiveRecord
def test_retrieve_connection_pool_uses_superclass_pool_after_subclass_establish_and_remove
@handler.establish_connection 'north america', Base.connection_pool.spec
+ assert_same @handler.retrieve_connection_pool(@klass),
+ @handler.retrieve_connection_pool(@subklass)
@handler.remove_connection @subklass
assert_same @handler.retrieve_connection_pool(@klass),