Sha256: 12baa598a20ae4eff09906d9ed4c5c18c813c4c3fb3fdec85c0560458a931bc7
Contents?: true
Size: 596 Bytes
Versions: 20
Compression:
Stored size: 596 Bytes
Contents
describe "Class Hierarchy" do it "should have the right superclasses" do BasicObject.superclass.should == nil Object.superclass.should == BasicObject Module.superclass.should == Object Class.superclass.should == Object end it "should have the right classes" do BasicObject.class.should == Class Object.class.should == Class Class.class.should == Class Module.class.should == Class end it "instances should have the right class" do Object.new.class.should == Object Class.new.class.should == Class Module.new.class.should == Module end end
Version data entries
20 entries across 20 versions & 1 rubygems