aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/object
diff options
context:
space:
mode:
authorMatthew Eagar <meagar@gmail.com>2017-01-26 08:32:05 -0500
committerGitHub <noreply@github.com>2017-01-26 08:32:05 -0500
commit4cf981f84637022bcf225afd3f13e088d3b0d154 (patch)
tree88421e27bcf10b4dc4ae0beae62d2e8c198b8454 /activesupport/test/core_ext/object
parent255babc98b650db7469653aba6405a60efc9e608 (diff)
parentf543b97fcc52168119d4e016eb50afbda702e601 (diff)
downloadrails-4cf981f84637022bcf225afd3f13e088d3b0d154.tar.gz
rails-4cf981f84637022bcf225afd3f13e088d3b0d154.tar.bz2
rails-4cf981f84637022bcf225afd3f13e088d3b0d154.zip
Merge branch 'master' into fix-missing-partial-iteration
Diffstat (limited to 'activesupport/test/core_ext/object')
-rw-r--r--activesupport/test/core_ext/object/duplicable_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/object/duplicable_test.rb b/activesupport/test/core_ext/object/duplicable_test.rb
index 1755d80b5f..e6f3c8aef2 100644
--- a/activesupport/test/core_ext/object/duplicable_test.rb
+++ b/activesupport/test/core_ext/object/duplicable_test.rb
@@ -4,7 +4,10 @@ require "active_support/core_ext/object/duplicable"
require "active_support/core_ext/numeric/time"
class DuplicableTest < ActiveSupport::TestCase
- if RUBY_VERSION >= "2.4.0"
+ if RUBY_VERSION >= "2.4.1"
+ RAISE_DUP = [method(:puts), Complex(1), Rational(1)]
+ ALLOW_DUP = ["1", "symbol_from_string".to_sym, Object.new, /foo/, [], {}, Time.now, Class.new, Module.new, BigDecimal.new("4.56"), nil, false, true, 1, 2.3]
+ elsif RUBY_VERSION >= "2.4.0" # Due to 2.4.0 bug. This elsif cannot be removed unless we drop 2.4.0 support...
RAISE_DUP = [method(:puts), Complex(1), Rational(1), "symbol_from_string".to_sym]
ALLOW_DUP = ["1", Object.new, /foo/, [], {}, Time.now, Class.new, Module.new, BigDecimal.new("4.56"), nil, false, true, 1, 2.3]
else