aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/reaper_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/reaper_test.rb')
-rw-r--r--activerecord/test/cases/reaper_test.rb3
1 files changed, 1 insertions, 2 deletions
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