Sha256: d29ae3d852ebb84815bbb64525eaaf871acb15feb327e75443679428e8af491f

Contents?: true

Size: 387 Bytes

Versions: 16

Compression:

Stored size: 387 Bytes

Contents

require 'spec_helper'

module Punchblock
  class Client
    describe ComponentRegistry do
      let(:component_id)  { 'abc123' }
      let(:component)     { stub 'Component', :component_id => component_id }

      it 'should store components and allow lookup by ID' do
        subject << component
        subject.find_by_id(component_id).should be component
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
punchblock-0.9.2 spec/punchblock/client/component_registry_spec.rb
punchblock-0.9.1 spec/punchblock/client/component_registry_spec.rb
punchblock-0.9.0 spec/punchblock/client/component_registry_spec.rb
punchblock-0.8.4 spec/punchblock/client/component_registry_spec.rb
punchblock-0.8.3 spec/punchblock/client/component_registry_spec.rb
punchblock-0.8.2 spec/punchblock/client/component_registry_spec.rb
punchblock-0.8.1 spec/punchblock/client/component_registry_spec.rb
punchblock-0.8.0 spec/punchblock/client/component_registry_spec.rb
punchblock-0.7.2 spec/punchblock/client/component_registry_spec.rb
punchblock-0.7.1 spec/punchblock/client/component_registry_spec.rb
punchblock-0.7.0 spec/punchblock/client/component_registry_spec.rb
punchblock-0.6.2 spec/punchblock/client/component_registry_spec.rb
punchblock-0.6.1 spec/punchblock/client/component_registry_spec.rb
punchblock-0.6.0 spec/punchblock/client/component_registry_spec.rb
punchblock-0.5.1 spec/punchblock/client/component_registry_spec.rb
punchblock-0.5.0 spec/punchblock/client/component_registry_spec.rb