diff options
author | Nick Sieger <nick@nicksieger.com> | 2008-08-08 00:45:16 -0700 |
---|---|---|
committer | Nick Sieger <nick@nicksieger.com> | 2008-08-29 14:12:11 -0500 |
commit | d7d2d73d88e465cb0c618283862179accd8932e1 (patch) | |
tree | df09c84bf9ea742bf2a8e061e78791d9fca96a02 /activerecord/test/cases | |
parent | 1712e37c90d0ac74b21589c0ee7b0365cb2b7beb (diff) | |
download | rails-d7d2d73d88e465cb0c618283862179accd8932e1.tar.gz rails-d7d2d73d88e465cb0c618283862179accd8932e1.tar.bz2 rails-d7d2d73d88e465cb0c618283862179accd8932e1.zip |
Fix typo: was using brackets instead of parens. Must need more sleep.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/threaded_connections_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/test/cases/threaded_connections_test.rb b/activerecord/test/cases/threaded_connections_test.rb index a9d82037bc..892a99f85a 100644 --- a/activerecord/test/cases/threaded_connections_test.rb +++ b/activerecord/test/cases/threaded_connections_test.rb @@ -105,5 +105,15 @@ unless %w(FrontBase).include? ActiveRecord::Base.connection.adapter_name assert_equal 3, @connection_count assert_equal 0, @timed_out end + + def test_pooled_connection_checkout_existing_first + ActiveRecord::Base.establish_connection(@connection.merge({:pool => 1})) + conn_pool = ActiveRecord::Base.connection_pool + conn = conn_pool.checkout + conn_pool.checkin(conn) + conn = conn_pool.checkout + assert ActiveRecord::ConnectionAdapters::AbstractAdapter === conn + conn_pool.checkin(conn) + end end end |