spec/lib/rambling/trie/node_spec.rb in rambling-trie-0.9.2 vs spec/lib/rambling/trie/node_spec.rb in rambling-trie-0.9.3
- old
+ new
@@ -67,14 +67,9 @@
it 'delegates `#[]=` to its children tree' do
expect(node.children_tree).to receive(:[]=).with(:key, 'value')
node[:key] = 'value'
end
- it 'delegates `#delete` to its children tree' do
- expect(node.children_tree).to receive(:delete).with(:key).and_return('value')
- expect(node.delete :key).to eq 'value'
- end
-
it 'delegates `#has_key?` to its children tree' do
expect(node.children_tree).to receive(:has_key?).with(:present_key).and_return(true)
expect(node).to have_key(:present_key)
expect(node.children_tree).to receive(:has_key?).with(:absent_key).and_return(false)