diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-12-13 00:43:56 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-12-13 00:43:56 +0900 |
commit | bd9e134b016938dfbe7cdbcc0e0d8a0bd3de2ae2 (patch) | |
tree | fd23e8123887422e12f2c046d603ad3988e4f9d0 /activesupport | |
parent | b87619f94550ad37a5a4825b0c2c1acdb96b5f6e (diff) | |
download | rails-bd9e134b016938dfbe7cdbcc0e0d8a0bd3de2ae2.tar.gz rails-bd9e134b016938dfbe7cdbcc0e0d8a0bd3de2ae2.tar.bz2 rails-bd9e134b016938dfbe7cdbcc0e0d8a0bd3de2ae2.zip |
nil, true, 1, etc. don't raise on #dup since Ruby 2.4
https://bugs.ruby-lang.org/issues/12979
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/core_ext/object/duplicable_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/object/duplicable_test.rb b/activesupport/test/core_ext/object/duplicable_test.rb index 677e32db1d..8ef2585fe9 100644 --- a/activesupport/test/core_ext/object/duplicable_test.rb +++ b/activesupport/test/core_ext/object/duplicable_test.rb @@ -4,7 +4,7 @@ require "active_support/core_ext/object/duplicable" require "active_support/core_ext/numeric/time" class DuplicableTest < ActiveSupport::TestCase - RAISE_DUP = [nil, false, true, :symbol, 1, 2.3, method(:puts)] + RAISE_DUP = [method(:puts)] ALLOW_DUP = ["1", Object.new, /foo/, [], {}, Time.now, Class.new, Module.new] ALLOW_DUP << BigDecimal.new("4.56") |