Sha256: 0e7ef6735ca0b3248974d9c866a151e8cf68b607ea0b7575a1a6b817aeabb233
Contents?: true
Size: 723 Bytes
Versions: 9
Compression:
Stored size: 723 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ | # |_|\___||___/\__| # # for lib/facets/uninheritable.rb # # Extracted Mon Sep 03 16:23:08 -0700 2007 # w/ Test Extraction Ratchet # require 'facets/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
9 entries across 9 versions & 1 rubygems