From bf06f6b056afd8e1df86cef27f928d849fe5a9b0 Mon Sep 17 00:00:00 2001 From: Dan Kubb Date: Wed, 17 Apr 2013 19:04:49 -0700 Subject: [PATCH] Fix code to no longer reference non-existent methods * This code is not final, but I could not figure out a clean way to reference the error and output stream from this method. --- lib/mutant/killer/rspec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/mutant/killer/rspec.rb b/lib/mutant/killer/rspec.rb index efb05908..a7fc2a8a 100644 --- a/lib/mutant/killer/rspec.rb +++ b/lib/mutant/killer/rspec.rb @@ -17,7 +17,9 @@ module Mutant # def run mutation.insert - !!::RSpec::Core::Runner.run(command_line_arguments, strategy.error_stream, strategy.output_stream).nonzero? + # TODO: replace with real streams from configuration + null = StringIO.new + !::RSpec::Core::Runner.run(command_line_arguments, null, null).zero? end # Return command line arguments