spec/punchblock/client/component_registry_spec.rb in punchblock-1.6.1 vs spec/punchblock/client/component_registry_spec.rb in punchblock-1.7.0
- old
+ new
@@ -10,8 +10,15 @@
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