diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-30 15:35:21 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-30 15:35:21 -0800 |
commit | ddde548816df68321a88bfa9fdd606d3dfac33aa (patch) | |
tree | ac451c53b387292c2478b56029b762cdb55a3001 /activerecord/test/cases | |
parent | 41c24eb3e38af99b208c17041199832a0372da8f (diff) | |
download | rails-ddde548816df68321a88bfa9fdd606d3dfac33aa.tar.gz rails-ddde548816df68321a88bfa9fdd606d3dfac33aa.tar.bz2 rails-ddde548816df68321a88bfa9fdd606d3dfac33aa.zip |
connection specification will deep copy the config
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/connection_adapters/connection_specification_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
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 |