Add spec for empty method mutations

This commit is contained in:
Markus Schirp 2013-06-29 00:39:22 +02:00
parent 2b901bc5d8
commit ca4e71028c

View file

@ -2,6 +2,17 @@ require 'spec_helper'
describe Mutant::Mutator, 'def' do
context 'empty' do
let(:source) { 'def foo; end' }
let(:mutations) do
mutations = []
mutations << 'def foo; ::Object.new; end'
end
it_should_behave_like 'a mutator'
end
context 'with no arguments' do
let(:source) { 'def foo; true; false; end' }