lib/mutant/subject.rb in mutant-0.3.0.beta8 vs lib/mutant/subject.rb in mutant-0.3.0.beta9

- old
+ new

@@ -13,12 +13,15 @@ # # @api private # def each return to_enum unless block_given? - Mutator.each(node) do |mutant| - yield Mutation::Evil.new(self, mutant) + + yield noop_mutation + + mutations.each do |mutation| + yield mutation end self end @@ -106,8 +109,18 @@ # # @api private # abstract_method :subtype private :subtype + + # Return neutral mutation + # + # @return [Mutation::Neutral] + # + # @api private + # + def noop_mutation + Mutation::Neutral::Noop.new(self, node) + end end # Subject end # Mutant