From 6c47342bcaf49846445a9914ff1abcfcba25e766 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Sun, 25 Nov 2012 00:45:19 +0100 Subject: [PATCH] Do not try print AST for cases generated source does not have a diff --- lib/mutant/reporter/cli.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/mutant/reporter/cli.rb b/lib/mutant/reporter/cli.rb index ca4e7076..4f9ec6e1 100644 --- a/lib/mutant/reporter/cli.rb +++ b/lib/mutant/reporter/cli.rb @@ -221,8 +221,6 @@ module Mutant diff = color? ? differ.colorized_diff : differ.diff # FIXME remove this branch before release if diff.empty? - killer.send(:mutation).node.ascii_graph - killer.send(:mutation).subject.node.ascii_graph raise "Unable to create a diff, so ast mutation or to_source has an error!" end puts(diff)