Skip to content

Commit

Permalink
just dup the spec now that it will deep copy
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Dec 30, 2011
1 parent ddde548 commit 3af68df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions activerecord/test/cases/reaper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ def test_pool_has_reaper
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
Expand Down

0 comments on commit 3af68df

Please sign in to comment.