free_mutant/spec/unit/mutant/mutator/node_spec.rb
Markus Schirp 4a9ab9340e Define expected mutations with less redundancy
The mutation examples are now introspectable, this allows to render nice
index or performing better automated analysis against the corpus.
2014-06-02 14:05:11 +00:00

14 lines
361 B
Ruby

require 'spec_helper'
describe Mutant::Mutator::Node do
Mutant::Meta::Example::ALL.each do |example|
context "on #{example.node.type.inspect}" do
it 'generates the correct mutations' do
verification = example.verification
unless verification.success?
fail verification.error_report
end
end
end
end
end