From 3af68df0807a321a5fb35070b47438e2e2950182 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 30 Dec 2011 15:36:48 -0800 Subject: just dup the spec now that it will deep copy --- activerecord/test/cases/reaper_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'activerecord') diff --git a/activerecord/test/cases/reaper_test.rb b/activerecord/test/cases/reaper_test.rb index 3ef86ec5e1..2fa544962a 100644 --- a/activerecord/test/cases/reaper_test.rb +++ b/activerecord/test/cases/reaper_test.rb @@ -47,8 +47,7 @@ module ActiveRecord end def test_reaping_frequency_configuration - spec = ActiveRecord::Base.connection_pool.spec - spec = ConnectionSpecification.new(spec.config.dup, spec.adapter_method) + spec = ActiveRecord::Base.connection_pool.spec.dup spec.config[:reaping_frequency] = 100 pool = ConnectionPool.new spec assert_equal 100, pool.reaper.frequency -- cgit v1.2.3