spec/punchblock/client/component_registry_spec.rb in punchblock-2.0.1 vs spec/punchblock/client/component_registry_spec.rb in punchblock-2.0.2
- old
+ new
@@ -3,22 +3,22 @@
require 'spec_helper'
module Punchblock
class Client
describe ComponentRegistry do
- let(:component_id) { 'abc123' }
- let(:component) { double 'Component', :component_id => component_id }
+ let(:uri) { 'abc123' }
+ let(:component) { double 'Component', source_uri: uri }
it 'should store components and allow lookup by ID' do
subject << component
- subject.find_by_id(component_id).should be component
+ subject.find_by_uri(uri).should be component
end
it 'should allow deletion of components' do
subject << component
- subject.find_by_id(component_id).should be component
+ subject.find_by_uri(uri).should be component
subject.delete component
- subject.find_by_id(component_id).should be_nil
+ subject.find_by_uri(uri).should be_nil
end
end
end
end