Method: RSpec::Core::Reporter#message

Defined in:
lib/rspec/core/reporter.rb

#message(message) ⇒ void

Send a custom message to supporting formatters.

Parameters:

  • message (#to_s)

    A message object to send to formatters

[View source]

99
100
101
# File 'lib/rspec/core/reporter.rb', line 99

def message(message)
  notify :message, Notifications::MessageNotification.new(message)
end