summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_gc_compact.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_gc_compact.rb b/test/ruby/test_gc_compact.rb
index e2199e8d0d..0fc27a287a 100644
--- a/test/ruby/test_gc_compact.rb
+++ b/test/ruby/test_gc_compact.rb
@@ -33,7 +33,7 @@ class TestGCCompact < Test::Unit::TestCase
100_000.times do
new_object = Object.new
- if addresses.include? memory_location(new_object)
+ if addresses.index memory_location(new_object)
break
end
end