free_mutant/spec/unit/mutant/mutator/node/dstr_spec.rb
Markus Schirp caf6c368d0 Remove indeterministic mutations
A mutation test that passes/fails on code today should also pass/fail on
the same code tomorrow.

* Closes #173
* Closes #127
* Closes #27
2014-05-10 14:37:25 +00:00

17 lines
346 B
Ruby

# encoding: utf-8
require 'spec_helper'
describe Mutant::Mutator::Node::Dstr, 'dstr' do
let(:source) { '"foo#{bar}baz"' }
let(:mutations) do
mutations = []
mutations << '"#{nil}#{bar}baz"'
mutations << '"foo#{bar}#{nil}"'
mutations << '"foo#{nil}baz"'
mutations << 'nil'
end
it_should_behave_like 'a mutator'
end