diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-30 15:36:48 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-30 15:36:48 -0800 |
commit | 3af68df0807a321a5fb35070b47438e2e2950182 (patch) | |
tree | d1ac2195d185c2cc9cab34eb38a995ef8a4658d6 /activerecord | |
parent | ddde548816df68321a88bfa9fdd606d3dfac33aa (diff) | |
download | rails-3af68df0807a321a5fb35070b47438e2e2950182.tar.gz rails-3af68df0807a321a5fb35070b47438e2e2950182.tar.bz2 rails-3af68df0807a321a5fb35070b47438e2e2950182.zip |
just dup the spec now that it will deep copy
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/reaper_test.rb | 3 |
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 |