Sha256: cd02d5458ff8dc504677916caccc220334d3f549c775374a083975fae4df2c90
Contents?: true
Size: 513 Bytes
Versions: 5
Compression:
Stored size: 513 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Support::ClassRegistry do Super = Class.new Sub = Class.new(Super) before(:all) do @registry = Support::ClassRegistry.new end it "should store class symbols" do @registry[:'Super'] = Super @registry[:'Super'].should eql(Super) end it "should retrieve class keys" do @registry[Super].should eql(Super) end it "should retrieve subclass keys" do @registry[Sub].should eql(Super) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
quebert-1.0.1 | spec/support_spec.rb |
quebert-1.0.0 | spec/support_spec.rb |
quebert-0.0.9 | spec/support_spec.rb |
quebert-0.0.8 | spec/support_spec.rb |
quebert-0.0.6 | spec/support_spec.rb |