Sha256: 3546d6cc2720675ed7ab38ec0f6ca0248507639e3838bc663290d6d57d4a9ba7
Contents?: true
Size: 509 Bytes
Versions: 6
Compression:
Stored size: 509 Bytes
Contents
describe "Class Hierarchy" do it "should have the right superclasses" do Object.superclass.should == nil Module.superclass.should == Object Class.superclass.should == Object end it "should have the right classes" do 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
6 entries across 6 versions & 1 rubygems