From c00d39d855449009fbb8cf40c1a95e1cdd2b5b3d Mon Sep 17 00:00:00 2001 From: Dan Kubb Date: Wed, 17 Apr 2013 18:59:32 -0700 Subject: [PATCH] Fix cli matchers to only include actual matcher objects --- lib/mutant/cli.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mutant/cli.rb b/lib/mutant/cli.rb index 4cd89880..2f27cfe2 100644 --- a/lib/mutant/cli.rb +++ b/lib/mutant/cli.rb @@ -157,7 +157,8 @@ module Mutant def dispatch_matcher argument = current_argument consume(1) - @matchers << Classifier.build(argument) + matcher = Classifier.build(argument) + @matchers << matcher if matcher end # Process option argument