# File test/test_monitor.rb, line 10 def setup # for Exception class @error_type = self.class @message_call = 0 @exception_class_call = 0 @backtrace_call = 0 @exception = Forwarder.new(self) class << @exception def_delegator :__getobj__, :message def_delegator :__getobj__, :exception_class, :class def_delegator :__getobj__, :backtrace end # target @timestamp = Time.mktime(2004, 10, 8, 2, 10, 58) # Fri Oct 08 02:10:58 2004 @sample = build_sample end