From ddde548816df68321a88bfa9fdd606d3dfac33aa Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 30 Dec 2011 15:35:21 -0800 Subject: connection specification will deep copy the config --- .../connection_adapters/connection_specification_test.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 activerecord/test/cases/connection_adapters/connection_specification_test.rb (limited to 'activerecord/test/cases') diff --git a/activerecord/test/cases/connection_adapters/connection_specification_test.rb b/activerecord/test/cases/connection_adapters/connection_specification_test.rb new file mode 100644 index 0000000000..ea2196cda2 --- /dev/null +++ b/activerecord/test/cases/connection_adapters/connection_specification_test.rb @@ -0,0 +1,12 @@ +require "cases/helper" + +module ActiveRecord + module ConnectionAdapters + class ConnectionSpecificationTest < ActiveRecord::TestCase + def test_dup_deep_copy_config + spec = ConnectionSpecification.new({ :a => :b }, "bar") + assert_not_equal(spec.config.object_id, spec.dup.config.object_id) + end + end + end +end -- cgit v1.2.3