spec/parent_tracker_spec.rb in compo-0.1.5 vs spec/parent_tracker_spec.rb in compo-0.2.0
- old
+ new
@@ -48,12 +48,12 @@
expect(subject.id).to eq(:new_id)
end
end
describe '#remove_parent' do
- it 'sets the parent to nil' do
+ it 'sets the parent to an instance of Parentless' do
subject.remove_parent
- expect(subject.parent).to be_nil
+ expect(subject.parent).to be_a(Compo::Parentless)
end
it 'sets the ID function to one returning nil' do
subject.remove_parent
expect(subject.id).to be_nil