aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/object
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2019-05-28 05:38:07 +0900
committerAkira Matsuda <ronnie@dio.jp>2019-05-28 05:41:37 +0900
commitf09ca65e0f298b39feecf99347deaf2acd2acc10 (patch)
tree299b85b0544e6e824543032605919636494f2a96 /activesupport/test/core_ext/object
parent1da0e25bcf2cdc5c675e7cee6d965795910c9828 (diff)
downloadrails-f09ca65e0f298b39feecf99347deaf2acd2acc10.tar.gz
rails-f09ca65e0f298b39feecf99347deaf2acd2acc10.tar.bz2
rails-f09ca65e0f298b39feecf99347deaf2acd2acc10.zip
ruby < 2.5 is no longer supported
Diffstat (limited to 'activesupport/test/core_ext/object')
-rw-r--r--activesupport/test/core_ext/object/duplicable_test.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/activesupport/test/core_ext/object/duplicable_test.rb b/activesupport/test/core_ext/object/duplicable_test.rb
index 5203434ae6..c9af2cb624 100644
--- a/activesupport/test/core_ext/object/duplicable_test.rb
+++ b/activesupport/test/core_ext/object/duplicable_test.rb
@@ -6,13 +6,8 @@ require "active_support/core_ext/object/duplicable"
require "active_support/core_ext/numeric/time"
class DuplicableTest < ActiveSupport::TestCase
- if RUBY_VERSION >= "2.5.0"
- RAISE_DUP = [method(:puts)]
- ALLOW_DUP = ["1", "symbol_from_string".to_sym, Object.new, /foo/, [], {}, Time.now, Class.new, Module.new, BigDecimal("4.56"), nil, false, true, 1, 2.3, Complex(1), Rational(1)]
- else
- 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("4.56"), nil, false, true, 1, 2.3]
- end
+ RAISE_DUP = [method(:puts)]
+ ALLOW_DUP = ["1", "symbol_from_string".to_sym, Object.new, /foo/, [], {}, Time.now, Class.new, Module.new, BigDecimal("4.56"), nil, false, true, 1, 2.3, Complex(1), Rational(1)]
def test_duplicable
rubinius_skip "* Method#dup is allowed at the moment on Rubinius\n" \