summaryrefslogtreecommitdiff
path: root/test/ruby/test_hash.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_hash.rb')
-rw-r--r--test/ruby/test_hash.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb
index 9fe64b38a0..dd93a63340 100644
--- a/test/ruby/test_hash.rb
+++ b/test/ruby/test_hash.rb
@@ -217,9 +217,9 @@ class TestHash < Test::Unit::TestCase
def test_AREF_fstring_key
h = {"abc" => 1}
- before = GC.stat(:total_allocated_object)
+ before = GC.stat(:total_allocated_objects)
5.times{ h["abc"] }
- assert_equal before, GC.stat(:total_allocated_object)
+ assert_equal before, GC.stat(:total_allocated_objects)
end
def test_ASET_fstring_key