Sha256: eba666d1f86c5f062649ea72d32ff44b6940b30fc6df2b2d957f9c4cd9d9c4d5

Contents?: true

Size: 406 Bytes

Versions: 15

Compression:

Stored size: 406 Bytes

Contents

# encoding: utf-8

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

15 entries across 15 versions & 1 rubygems

Version Path
punchblock-1.6.1 spec/punchblock/client/component_registry_spec.rb
punchblock-1.6.0 spec/punchblock/client/component_registry_spec.rb
punchblock-1.5.3 spec/punchblock/client/component_registry_spec.rb
punchblock-1.5.2 spec/punchblock/client/component_registry_spec.rb
punchblock-1.5.1 spec/punchblock/client/component_registry_spec.rb
punchblock-1.5.0 spec/punchblock/client/component_registry_spec.rb
punchblock-1.4.1 spec/punchblock/client/component_registry_spec.rb
punchblock-1.4.0 spec/punchblock/client/component_registry_spec.rb
punchblock-1.3.0 spec/punchblock/client/component_registry_spec.rb
punchblock-1.2.0 spec/punchblock/client/component_registry_spec.rb
punchblock-1.1.0 spec/punchblock/client/component_registry_spec.rb
punchblock-1.0.0 spec/punchblock/client/component_registry_spec.rb
punchblock-0.12.0 spec/punchblock/client/component_registry_spec.rb
punchblock-0.11.0 spec/punchblock/client/component_registry_spec.rb
punchblock-0.10.0 spec/punchblock/client/component_registry_spec.rb