You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the best additional features of testing with domain events is the ability to check what has not happened.
Currently have_applied and have_published use RSpec::Matchers::BuiltIn::Include matcher which does not guarantee there this and only this. That's especially important in terms of have_applied.
It would be nice to have API such as expect(obj).to have_applied(...events).only and to know that there are those and only those events listed in unpublished_events.
Maybe only should be a default behavior even? and .softly or .not_exclusively should to it otherwise?
The text was updated successfully, but these errors were encountered:
Posted originally by @paneq
One of the best additional features of testing with domain events is the ability to check what has not happened.
Currently
have_applied
andhave_published
useRSpec::Matchers::BuiltIn::Include
matcher which does not guarantee there this and only this. That's especially important in terms ofhave_applied
.It would be nice to have API such as
expect(obj).to have_applied(...events).only
and to know that there are those and only those events listed inunpublished_events
.Maybe
only
should be a default behavior even? and.softly
or.not_exclusively
should to it otherwise?The text was updated successfully, but these errors were encountered: