method
assert_no_event_reported
rails latest stable - Class:
ActiveSupport::Testing::EventReporterAssertions
assert_no_event_reported(name = nil, payload: {}, tags: {}, &block)public
Asserts that the block does not cause an event to be reported to Rails.event.
If no name is provided, passes if evaluated code in the yielded block reports no events.
assert_no_event_reported do service_that_does_not_report_events.perform end
If a name is provided, passes if evaluated code in the yielded block reports no events with that name.
assert_no_event_reported("user.created") do service_that_does_not_report_events.perform end