a9974741f2
* The old layout was imposed by older mutants that selected tests via file names. * Reduce the useless namespace Mutator::Node::Connective
18 lines
334 B
Ruby
18 lines
334 B
Ruby
# encoding: utf-8
|
|
|
|
require 'spec_helper'
|
|
|
|
describe Mutant::Mutator::Node::Restarg, 'restarg' do
|
|
let(:source) { 'foo(*bar)' }
|
|
|
|
let(:mutations) do
|
|
mutants = []
|
|
mutants << 'foo'
|
|
mutants << 'foo(nil)'
|
|
mutants << 'foo(bar)'
|
|
mutants << 'foo(*nil)'
|
|
mutants << 'nil'
|
|
end
|
|
|
|
it_should_behave_like 'a mutator'
|
|
end
|