class RSpec::Core::Reporter
def publish(event, options={})
- See: RSpec::Core::Notifications::CustomNotification -
Parameters:
-
options
(Hash
) -- Hash of arguments to provide via `CustomNotification` -
event
(Symbol
) -- Name of the custom event to trigger on formatters
def publish(event, options={}) if RSPEC_NOTIFICATIONS.include? event raise "RSpec::Core::Reporter#publish is intended for sending custom " \ "events not internal RSpec ones, please rename your custom event." end notify event, Notifications::CustomNotification.for(options) end