summaryrefslogtreecommitdiff
path: root/test/ruby/test_hash.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-30 21:11:18 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-30 21:11:18 +0000
commite1536a74243b4c6b006ea51d93ee42b28f234955 (patch)
treeb62e6fda3b8772c1394cb743dd32c10753e99a5a /test/ruby/test_hash.rb
parentd77ee13282441dfd3158833d3ef4794834dea2bb (diff)
fix ruby/test_hash.rb [ruby-core:59154] [Bug #9223]
the behavior is under 2.2.0 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@44466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_hash.rb')
-rw-r--r--test/ruby/test_hash.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb
index 169157bdfd..82388fdf9e 100644
--- a/test/ruby/test_hash.rb
+++ b/test/ruby/test_hash.rb
@@ -558,7 +558,7 @@ class TestHash < Test::Unit::TestCase
assert_equal(h3, h.reject {|k,v| v })
assert_equal(base, h)
- return unless RUBY_VERSION > "2.1.0"
+ return unless RUBY_VERSION < "2.2.0" # [ruby-core:59154] [Bug #9223]
h.instance_variable_set(:@foo, :foo)
h.default = 42