Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature proposal have_applied(...events).only #119

Closed
fidel opened this issue Sep 20, 2017 · 1 comment
Closed

Feature proposal have_applied(...events).only #119

fidel opened this issue Sep 20, 2017 · 1 comment

Comments

@fidel
Copy link
Contributor

fidel commented Sep 20, 2017

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 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?

@fidel
Copy link
Contributor Author

fidel commented May 22, 2018

There:

@fidel fidel closed this as completed May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants