Sha256: 01583de47175e8e5dd0c48b2f41a6b2aa3dfa0e97fe2f99f9ca1ee28ad96afee
Contents?: true
Size: 711 Bytes
Versions: 1
Compression:
Stored size: 711 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/more/uninheritable.rb # # Extracted Wed Aug 23 18:22:52 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/more/uninheritable.rb' require 'test/unit' class TC_Uninheritable < Test::Unit::TestCase class Cannot extend Uninheritable end class Can end def test_module assert_nothing_raised { self.instance_eval <<-EOS class A < Can; end EOS } assert_raises(TypeError, "Class Cannot cannot be subclassed.") do self.instance_eval <<-EOS class B < Cannot; end EOS end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.7.30 | test/lib/facets/more/test_uninheritable.rb |