Creates a new Notification with the given location and message.
# File test-unit-3.3.7/lib/test/unit/notification.rb, line 15 def initialize(test_name, location, message, options={}) @test_name = test_name @location = location @message = message @method_name = options[:method_name] end
# File test-unit-3.3.7/lib/test/unit/notification.rb, line 47 def critical? false end
# File test-unit-3.3.7/lib/test/unit/notification.rb, line 27 def label LABEL end
Returns a verbose version of the error description.
# File test-unit-3.3.7/lib/test/unit/notification.rb, line 37 def long_display backtrace = filter_backtrace(location).join("\n") "#{label}: #{@message}\n#{@test_name}\n#{backtrace}" end
Returns a brief version of the error description.
# File test-unit-3.3.7/lib/test/unit/notification.rb, line 32 def short_display "#{@test_name}: #{@message.split("\n")[0]}" end