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

Version Path
quebert-3.0.3 spec/support_spec.rb
quebert-3.0.2 spec/support_spec.rb
quebert-3.0.1 spec/support_spec.rb
quebert-3.0.0 spec/support_spec.rb
quebert-2.0.4 spec/support_spec.rb
quebert-2.0.3 spec/support_spec.rb
quebert-2.0.2 spec/support_spec.rb
quebert-2.0.1 spec/support_spec.rb
quebert-2.0.0 spec/support_spec.rb
quebert-1.12.0 spec/support_spec.rb
quebert-1.11.0 spec/support_spec.rb
quebert-1.0.9 spec/support_spec.rb
quebert-1.0.8 spec/support_spec.rb
quebert-1.0.7 spec/support_spec.rb
quebert-1.0.6 spec/support_spec.rb
quebert-1.0.5 spec/support_spec.rb
quebert-1.0.4 spec/support_spec.rb
quebert-1.0.2 spec/support_spec.rb