Merge pull request #56 from mbj/errors-as-success

Change forked run method to consider some errors as success
This commit is contained in:
Markus Schirp 2013-06-24 01:40:42 -07:00
commit a215ff74cf

View file

@ -20,7 +20,12 @@ module Mutant
# TODO: replace with real streams from configuration
require 'stringio'
null = StringIO.new
!::RSpec::Core::Runner.run(command_line_arguments, null, null).zero?
args = command_line_arguments
begin
!::RSpec::Core::Runner.run(args, null, null).zero?
rescue StandardError
true
end
end
# Return command line arguments