
A mutation test that passes/fails on code today should also pass/fail on the same code tomorrow. * Closes #173 * Closes #127 * Closes #27
17 lines
346 B
Ruby
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
|