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

Version Path
opal-0.4.3 spec/opal/runtime2/class_hierarchy_spec.rb
opal-0.4.2 spec/opal/runtime2/class_hierarchy_spec.rb
opal-0.4.1 spec/opal/runtime2/class_hierarchy_spec.rb
opal-0.4.0 spec/opal/runtime2/class_hierarchy_spec.rb
opal-0.3.44 spec/rubyspec/core/runtime/class_hierarchy_spec.rb
opal-0.3.43 spec/rubyspec/core/runtime/class_hierarchy_spec.rb
opal-0.3.42 spec/core/runtime/class_hierarchy_spec.rb
opal-0.3.41 spec/core/runtime/class_hierarchy_spec.rb
opal-0.3.40 spec/core/runtime/class_hierarchy_spec.rb
opal-0.3.39 spec/core/runtime/class_hierarchy_spec.rb
opal-0.3.38 spec/core/runtime/class_hierarchy_spec.rb
opal-0.3.37 spec/core/runtime/class_hierarchy_spec.rb
opal-0.3.36 spec/core/runtime/class_hierarchy_spec.rb
opal-0.3.35 spec/core/runtime/class_hierarchy_spec.rb
opal-0.3.34 spec/core/runtime/class_hierarchy_spec.rb
opal-0.3.33 spec/core/runtime/class_hierarchy_spec.rb
opal-0.3.32 spec/core/runtime/class_hierarchy_spec.rb
opal-0.3.25 spec/opal/runtime/class_hierarchy_spec.rb
opal-0.3.22 spec/opal/runtime/class_hierarchy_spec.rb
opal-0.3.21 test/opal/runtime/class_hierarchy_spec.rb