summaryrefslogtreecommitdiff
path: root/test/ruby/test_object_id.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_object_id.rb')
-rw-r--r--test/ruby/test_object_id.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ruby/test_object_id.rb b/test/ruby/test_object_id.rb
index adb819febc..034674e5be 100644
--- a/test/ruby/test_object_id.rb
+++ b/test/ruby/test_object_id.rb
@@ -140,7 +140,7 @@ end
class TestObjectIdTooComplex < TestObjectId
class TooComplex
def initialize
- @too_complex_obj_id_test = 1
+ @complex_obj_id_test = 1
end
end
@@ -155,7 +155,7 @@ class TestObjectIdTooComplex < TestObjectId
@obj.instance_variable_set("@a#{rand(10_000)}", 1)
if defined?(RubyVM::Shape)
- assert_predicate(RubyVM::Shape.of(@obj), :too_complex?)
+ assert_predicate(RubyVM::Shape.of(@obj), :complex?)
end
end
end
@@ -181,7 +181,7 @@ class TestObjectIdTooComplexClass < TestObjectId
@obj.instance_variable_set("@test", 1)
if defined?(RubyVM::Shape)
- assert_predicate(RubyVM::Shape.of(@obj), :too_complex?)
+ assert_predicate(RubyVM::Shape.of(@obj), :complex?)
end
end
end
@@ -202,7 +202,7 @@ class TestObjectIdTooComplexGeneric < TestObjectId
@obj.instance_variable_set("@a#{rand(10_000)}", 1)
if defined?(RubyVM::Shape)
- assert_predicate(RubyVM::Shape.of(@obj), :too_complex?)
+ assert_predicate(RubyVM::Shape.of(@obj), :complex?)
end
end
end
@@ -282,7 +282,7 @@ end
class TestObjectIdStructTooComplex < TestObjectId
StructTooComplex = Struct.new(:a) do
def initialize
- @too_complex_obj_id_test = 1
+ @complex_obj_id_test = 1
end
end
@@ -297,7 +297,7 @@ class TestObjectIdStructTooComplex < TestObjectId
@obj.instance_variable_set("@a#{rand(10_000)}", 1)
if defined?(RubyVM::Shape)
- assert_predicate(RubyVM::Shape.of(@obj), :too_complex?)
+ assert_predicate(RubyVM::Shape.of(@obj), :complex?)
end
end
end