spec/composite_shared_examples.rb in compo-0.3.1 vs spec/composite_shared_examples.rb in compo-0.4.0
- old
+ new
@@ -1,10 +1,10 @@
require 'compo'
shared_examples 'a removal of a child from its parent' do
it 'calls #update_parent on the child with a Parentless' do
expect(child).to receive(:update_parent).once do |parent, _|
- expect(parent).to be_a(Compo::Parentless)
+ expect(parent).to be_a(Compo::Composites::Parentless)
end
op.call
end
it 'calls #update_parent on the child with a nil-returning ID proc' do