From 54f6b3fe826f49ad245db65f692cfc6096706bd3 Mon Sep 17 00:00:00 2001 From: kazu Date: Sat, 4 Jan 2014 12:47:01 +0000 Subject: test/ruby/test_gc.rb: use GC.stat(:key) instead of GC.stat * test/ruby/test_gc.rb (TestGc#test_latest_gc_info): use GC.stat(:key) instead of GC.stat. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_gc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby') diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index 7c13978dc1..0dd002ddc0 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -103,7 +103,7 @@ class TestGc < Test::Unit::TestCase def test_latest_gc_info GC.start - GC.stat[:heap_free_slot].times{ "a" + "b" } + GC.stat(:heap_free_slot).times{ "a" + "b" } assert_equal :newobj, GC.latest_gc_info[:gc_by] GC.start -- cgit v1.2.3