From 411e86e5c3087b5a3205a4d8964d1c4a921389df Mon Sep 17 00:00:00 2001 From: Matt Moretti Date: Tue, 23 Dec 2025 10:26:27 -0500 Subject: [PATCH] Fix assertion about the class of `#object_id` In Ruby 2.4, `Fixnum` and `Bignum` were unified into `Integer` and the "bigness" of that integer became an internal implementation detail. Because the koans support some pretty old rubies, we can't make a universal assertion about the class of `Object.new.object_id`, but it always `is_a? Integer`. --- src/about_objects.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/about_objects.rb b/src/about_objects.rb index 0d752583b..4d9b15d98 100644 --- a/src/about_objects.rb +++ b/src/about_objects.rb @@ -21,7 +21,7 @@ def test_objects_can_be_inspected def test_every_object_has_an_id obj = Object.new - assert_equal __(Fixnum), obj.object_id.class + assert obj.object_id.is_a?(__(Integer)) end def test_every_object_has_different_id