
* The old layout was imposed by older mutants that selected tests via file names. * Reduce the useless namespace Mutator::Node::Connective
23 lines
491 B
Ruby
23 lines
491 B
Ruby
# encoding: utf-8
|
|
|
|
require 'spec_helper'
|
|
|
|
describe Mutant::Mutator::Node::Dsym, 'dsym' do
|
|
before do
|
|
Mutant::Random.stub(hex_string: 'random')
|
|
end
|
|
|
|
let(:source) { ':"foo#{bar}baz"' }
|
|
|
|
let(:mutations) do
|
|
mutations = []
|
|
mutations << ':"random#{bar}baz"'
|
|
mutations << ':"#{nil}#{bar}baz"'
|
|
mutations << ':"foo#{bar}random"'
|
|
mutations << ':"foo#{bar}#{nil}"'
|
|
mutations << ':"foo#{nil}baz"'
|
|
mutations << 'nil'
|
|
end
|
|
|
|
it_should_behave_like 'a mutator'
|
|
end
|