-
Notifications
You must be signed in to change notification settings - Fork 13
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
Implement assertions for Minitest #2
Implement assertions for Minitest #2
Conversation
Thanks for you contribution!
Check out, for example: https://github.com/palkan/action_policy/blob/master/test/action_policy/test_helper_test.rb
Let's define assertions in the
What about a less generic name? Say, |
Hi @palkan I've made some of the changes you suggested. I can't help but notice the similarity between the rspec and minitest matchers and I'm wondering if a refactor would make sense? When I run the tests using
|
I got the output cleared by running |
def9cee
to
fcf3269
Compare
👋 For the record — there's an interest for minitest matchers in upstream too:
Perhaps we can team up on this? |
Hey @pawelpacana sure thing! In a recent project we've been using some helpers which might be of use in RES: https://gist.github.com/chriscz/14a8b5c9874706a9d8c07fe50041f2b1 |
Hey @palkan I'm rounding this off tonight will mark ready for review then. Just need to update the docs and I'll be done. |
e745515
to
6713694
Compare
6713694
to
1cc2b90
Compare
539c286
to
b0f8228
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! Thanks!
Left a couple comments.
b0f8228
to
9c3df6f
Compare
Released in 1.0.1. Thank you! |
What is the purpose of this pull request?
This pull request tracks an implementation of some minitest assertions & expectations.
What changes did you make? (overview)
So far I've added the
ActiveEventStore::Minitest::Assertions
module and theassert_published
method and I plan on adding anassert_enqueued_async_subscriber
method as well.Is there anything you'd like reviewers to focus on?
Nothing for review, but some questions:
Checklist
assert_published
assert_enqueued_async_subscriber