test/test_module.rb in ruby-internal-0.8.3 vs test/test_module.rb in ruby-internal-0.8.4

- old
+ new

@@ -33,12 +33,14 @@ def test_add_method m = method(:foo) n = m.body klass = Class.new - klass.instance_eval do + klass.class_eval do add_method(:foo, n, Noex::PUBLIC) end + p klass.methods.sort + p klass.instance_methods.sort obj = klass.new assert_equal 42, obj.foo end end