From 571955c13fc9363b16756c8419d6ea9bcd8de06f Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 17 Dec 2013 11:15:00 +0000 Subject: hash.c: revert * hash.c (rb_hash_reject): revert to deprecated behavior, with warnings, due to compatibility for HashWithDifferentAccess. [ruby-core:59154] [Bug #9223] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_hash.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby/test_hash.rb') diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index 3273d66c45..169157bdfd 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -558,6 +558,8 @@ class TestHash < Test::Unit::TestCase assert_equal(h3, h.reject {|k,v| v }) assert_equal(base, h) + return unless RUBY_VERSION > "2.1.0" + h.instance_variable_set(:@foo, :foo) h.default = 42 h.taint -- cgit v1.2.3