Sha256: ff8d24cd7bab1038254d17f84198278b01c49f0386a62135bd5c5b0764c5e813
Contents?: true
Size: 295 Bytes
Versions: 23
Compression:
Stored size: 295 Bytes
Contents
class UndefSpecClass def meth(other);other;end end describe "The undef keyword" do it "undefines 'meth='" do obj = ::UndefSpecClass.new (obj.meth 5).should == 5 class ::UndefSpecClass undef meth end lambda { obj.meth 5 }.should raise_error(NoMethodError) end end
Version data entries
23 entries across 23 versions & 1 rubygems