bb9809fa39
* The old nameing did not make any sense. Sorry for not useing git mv.
23 lines
421 B
Ruby
23 lines
421 B
Ruby
require 'spec_helper'
|
|
|
|
describe Mutant::Mutator::Literal, 'boolean' do
|
|
context 'true literal' do
|
|
let(:source) { 'true' }
|
|
|
|
let(:mutations) do
|
|
%w(nil false)
|
|
end
|
|
|
|
it_should_behave_like 'a mutation enumerator method'
|
|
end
|
|
|
|
context 'false literal' do
|
|
let(:source) { 'false' }
|
|
|
|
let(:mutations) do
|
|
%w(nil true)
|
|
end
|
|
|
|
it_should_behave_like 'a mutation enumerator method'
|
|
end
|
|
end
|