Sha256: 6c5f873cd5b217570fe4ac0643eb0a45260b02c8217f4a888537753347291fee
Contents?: true
Size: 469 Bytes
Versions: 18
Compression:
Stored size: 469 Bytes
Contents
require '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
18 entries across 18 versions & 1 rubygems