diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb index 12f78dd..993eb3d 100644 --- a/test/ruby/test_class.rb +++ b/test/ruby/test_class.rb @@ -37,6 +37,14 @@ class TestClass < Test::Unit::TestCase # Start of tests # ------------------ + def test_inspect_changes + x = Class.new + x.inspect + y = x.dup + refute_equal x, y + refute_equal x.inspect, y.inspect + end + def test_s_inherited assert_equal([ClassTwo, ClassThree, ClassFour], ClassOne.new.subs) end