spec/unit/mutant/mutator/node/ensure/mutation_spec.rb in mutant-0.3.0.rc3 vs spec/unit/mutant/mutator/node/ensure/mutation_spec.rb in mutant-0.3.0.rc4
- old
+ new
@@ -1,15 +1,16 @@
# encoding: utf-8
require 'spec_helper'
describe Mutant::Mutator::Node::Generic, 'ensure' do
- let(:source) { 'begin; rescue; ensure; true; end' }
+ let(:source) { 'begin; rescue; ensure; true; end' }
let(:mutations) do
mutations = []
mutations << 'begin; rescue; ensure; false; end'
mutations << 'begin; rescue; ensure; nil; end'
+ mutations << 'nil'
end
it_should_behave_like 'a mutator'
end