1 # frozen_string_literal: false
4 class TestUndef < Test::Unit::TestCase
24 assert_raise(NoMethodError) { x.foo }
26 assert_equal "bar", y.bar
28 assert_raise(NoMethodError) { z.bar }
31 def test_special_const_undef
32 assert_raise(TypeError) do
39 def test_singleton_undef
48 klass.new.instance_eval do