Sha256: c373486b2da4b6569b7095d1b83e3a42aa83dc7e54c97660cef7cf028b71c664
Contents?: true
Size: 645 Bytes
Versions: 10
Compression:
Stored size: 645 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 it 'should allow deletion of components' do subject << component subject.find_by_id(component_id).should be component subject.delete component subject.find_by_id(component_id).should be_nil end end end end
Version data entries
10 entries across 10 versions & 1 rubygems