/vendor/gems/facets-2.4.5/test/core/module/test_can.rb
Ruby | 19 lines | 13 code | 6 blank | 0 comment | 0 complexity | dc964b709da91bcfc8c1b1a443a748c0 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- require 'facets/module/can'
- require 'test/unit'
- class Test_Module_Can < Test::Unit::TestCase
- module M
- def x; "x"; end
- end
- class X
- can M
- end
- def test_can
- assert("x", X.x)
- end
- end