spec/punchblock/client/component_registry_spec.rb in punchblock-2.5.2 vs spec/punchblock/client/component_registry_spec.rb in punchblock-2.5.3

- old
+ new

@@ -8,17 +8,17 @@ 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_uri(uri).should be component + expect(subject.find_by_uri(uri)).to be component end it 'should allow deletion of components' do subject << component - subject.find_by_uri(uri).should be component + expect(subject.find_by_uri(uri)).to be component subject.delete component - subject.find_by_uri(uri).should be_nil + expect(subject.find_by_uri(uri)).to be_nil end end end end