spec/unit/mutant/mutator/node/defined_predicate/mutation_spec.rb in mutant-0.3.0.rc1 vs spec/unit/mutant/mutator/node/defined_predicate/mutation_spec.rb in mutant-0.3.0.rc2
- old
+ new
@@ -1,10 +1,14 @@
# encoding: utf-8
require 'spec_helper'
describe Mutant::Mutator::Node::Generic, 'defined?' do
- let(:source) { 'defined?(foo)' }
- let(:mutations) { [] }
+ let(:source) { 'defined?(foo)' }
+
+ let(:mutations) do
+ mutations = []
+ mutations << 'defined?(nil)'
+ end
it_should_behave_like 'a mutator'
end