Sha256: 64ee186288e3b7cd3ea6bb652d468c1ed902a488db7269c77d532ae4cc3fcff4
Contents?: true
Size: 451 Bytes
Versions: 3
Compression:
Stored size: 451 Bytes
Contents
describe "self in a metaclass body (class << obj)" do it "is TrueClass for true" do class << true; self; end.should == TrueClass end it "is FalseClass for false" do class << false; self; end.should == FalseClass end it "is NilClass for nil" do class << nil; self; end.should == NilClass end it "raises a TypeError for numbers" it "raises a TypeError for symbols" it "is a singleton Class instance" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opal-0.2.2 | opals/opal/opal/spec/language/metaclass_spec.rb |
opal-0.2.0 | opals/opal/opal/spec/language/metaclass_spec.rb |
opal-0.1.0 | opals/opal/spec/language/metaclass_spec.rb |