spec/unit/mutest/source_file_spec.rb in mutest-0.0.2 vs spec/unit/mutest/source_file_spec.rb in mutest-0.0.3
- old
+ new
@@ -31,12 +31,16 @@
expect(source_file.ignore?(foo_method)).to be(false)
expect(source_file.ignore?(bar_method)).to be(true)
end
end
- it 'ignores nodes that do not have a location' do
+ it 'ignores nodes that do not have a line' do
_, bar_method = *ast
_, bar_method_args, = *bar_method
expect(source_file.ignore?(bar_method_args)).to be(false)
+ end
+
+ it 'ignores nodes that do not have a location' do
+ expect(source_file.ignore?(s(:custom))).to be(false)
end
end