/vendor/gems/facets-2.4.5/test/core/unboundmethod/test_name.rb
Ruby | 15 lines | 10 code | 5 blank | 0 comment | 0 complexity | 96f2e7e03c263c70aa6609d92e9468c4 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- require 'facets/unboundmethod/arguments'
- class Test_UnboundMethod < Test::Unit::TestCase
- class X
- def foo; end
- end
- def test_name
- meth = X.instance_method(:foo)
- assert_equal("foo", meth.name)
- end
- end