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