spec/ast/node_spec.rb in dentaku-2.0.4 vs spec/ast/node_spec.rb in dentaku-2.0.5
- old
+ new
@@ -20,9 +20,12 @@
node = make_node('if(x > 5, y, z)')
expect(node.dependencies).to eq ['x', 'y', 'z']
node = make_node('if(x > 5, y, z)')
expect(node.dependencies('x' => 7)).to eq ['y', 'z']
+
+ node = make_node('')
+ expect(node.dependencies).to eq []
end
it 'returns unique list of dependencies' do
node = make_node('x + x')
expect(node.dependencies).to eq ['x']