Sha256: 16b7e9bcadc208ce10400f941df631e179f978094286684618cd5f234abd80bd
Contents?: true
Size: 377 Bytes
Versions: 19
Compression:
Stored size: 377 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../spec_helper' 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
19 entries across 19 versions & 1 rubygems