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

/vendor/gems/facets-2.4.5/test/core/module/test_is.rb

https://bitbucket.org/mediashelf/fedora-migrator
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
  1. require 'test/unit'
  2. require 'facets/module/is'
  3. class Test_Module_Is < Test::Unit::TestCase
  4. module M ; end
  5. class X ; end
  6. class Y < X ; is M ;end
  7. def test_is?
  8. assert(Y.is?(X))
  9. end
  10. def test_is
  11. assert(Y.is?(M))
  12. end
  13. end