Add wran interface for trace reporter

This commit is contained in:
Markus Schirp 2014-07-02 19:23:40 +00:00
parent d7ae5a01d4
commit aa1ddd3bb4

View file

@ -2,7 +2,7 @@ module Mutant
class Reporter
# Reporter to trace report calls, used as a spec adapter
class Trace
include Concord::Public.new(:progress_calls, :report_calls)
include Concord::Public.new(:progress_calls, :report_calls, :warn_calls)
# Return new trace reporter
#
@ -11,7 +11,20 @@ module Mutant
# @api private
#
def self.new
super([], [])
super([], [], [])
end
# Warn with message
#
# @param [String] message
#
# @return [self]
#
# @api private
#
def warn(message)
warn_calls << message
self
end
# Report object