Sha256: 3d9fb6da1d95c38128668375ed66dcf851a6ecd7acd3b48a6a58196bf4560739

Contents?: true

Size: 652 Bytes

Versions: 3

Compression:

Stored size: 652 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe TypeSafe, ".must_be_kind_of" do
  it "should recognize Class as kind of Object" do
    lambda{Class.must_be_kind_of(Object)}.should_not raise_error(TypeError)
  end
  it "should recognize Object as kind of Class" do
    lambda{Object.must_be_kind_of(Class)}.should_not raise_error(TypeError)
  end
  it "should recognize Fixnum as kind of Integer" do
    lambda{Fixnum.must_be_kind_of(Integer)}.should_not raise_error(TypeError)
  end
  it "should recognize Bignum as kind of Integer" do
    lambda{Bignum.must_be_kind_of(Integer)}.should_not raise_error(TypeError)
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
tsalzer-typesafe-0.0.1 spec/typesafe_class_coreclasses_spec.rb
tsalzer-typesafe-0.0.2 spec/typesafe_class_coreclasses_spec.rb
typesafe-0.0.2 spec/typesafe_class_coreclasses_spec.rb