PageRenderTime 45ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/vendor/gems/facets-2.4.5/test/core/unboundmethod/test_name.rb

https://bitbucket.org/mediashelf/fedora-migrator
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
  1. require 'facets/unboundmethod/arguments'
  2. class Test_UnboundMethod < Test::Unit::TestCase
  3. class X
  4. def foo; end
  5. end
  6. def test_name
  7. meth = X.instance_method(:foo)
  8. assert_equal("foo", meth.name)
  9. end
  10. end