Currently the type parameter of the create_audit_event matcher is mandatory. For not_to expectations, it would be useful to omit it, to assert that no audit event has been created instead of asserting that no audit event of a specific type was created.
Currently the
type
parameter of thecreate_audit_event
matcher is mandatory. Fornot_to
expectations, it would be useful to omit it, to assert that no audit event has been created instead of asserting that no audit event of a specific type was created.The matcher is located in
spec/support/matchers/audit_event_matchers.rb
.