Sha256: bab161305c19cff83039bb67c9bbce574493214630bcb33a89228077e7456fa2
Contents?: true
Size: 419 Bytes
Versions: 1
Compression:
Stored size: 419 Bytes
Contents
describe "Ray.resolve_type" do context "when given a module" do it "should return it" do Ray.resolve_type(Class).should == Class end end context "when given something else" do it "should return nil if it's not registred" do Ray.resolve_type(3).should == nil end it "should return a module if it is registred" do Ray.resolve_type(:string).should == String end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ray-0.0.0.pre2 | spec/ray/type_spec.rb |