From 12b769d538b13b92ad131193aa4e0381d716d062 Mon Sep 17 00:00:00 2001 From: kazu Date: Sun, 11 May 2008 01:40:30 +0000 Subject: add tests of UnboundMethod#{name,owner} git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_method.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby/test_method.rb') diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index ad05e04ab..d786c1d5f 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -109,6 +109,8 @@ class TestMethod < Test::Unit::TestCase assert_equal(o, m.receiver) assert_equal(:foo, m.name) assert_equal(class << o; self; end, m.owner) + assert_equal("foo", m.unbind.name) + assert_equal(class << o; self; end, m.unbind.owner) end def test_instance_method -- cgit