Sha256: d43274a8ca571a194358b4f358c53d86cfc3fbecbabaef3ca1a505baf5d29eff
Contents?: true
Size: 711 Bytes
Versions: 1
Compression:
Stored size: 711 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/more/uninheritable.rb # # Extracted Fri Sep 08 20:20:32 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.46 | test/lib/facets/more/test_uninheritable.rb |