joshmn / caffeinate

A Rails engine for drip campaigns/scheduled sequences and periodical support. Works with ActionMailer, and other things.
https://caffeinate.email
MIT License
345 stars 13 forks source link

Add RSpec matchers #30

Closed joshmn closed 1 year ago

joshmn commented 1 year ago

Adds some matchers for help. Won't get autoloaded, requires a manual require, but that's ok cuz I don't wanna make things explode for people using minitest.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 98.71% and project coverage change: -0.02 :warning:

Comparison is base (ece2c38) 98.90% compared to head (72541d6) 98.88%.

:exclamation: Current head 72541d6 differs from pull request most recent head 0089e45. Consider uploading reports for the commit 0089e45 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #30 +/- ## ========================================== - Coverage 98.90% 98.88% -0.02% ========================================== Files 85 95 +10 Lines 2097 2330 +233 ========================================== + Hits 2074 2304 +230 - Misses 23 26 +3 ``` | [Impacted Files](https://codecov.io/gh/joshmn/caffeinate/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [...rspec/matchers/subscribe\_to\_caffeinate\_campaign.rb](https://codecov.io/gh/joshmn/caffeinate/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-bGliL2NhZmZlaW5hdGUvcnNwZWMvbWF0Y2hlcnMvc3Vic2NyaWJlX3RvX2NhZmZlaW5hdGVfY2FtcGFpZ24ucmI=) | `96.77% <96.77%> (ø)` | | | [...c/matchers/end\_caffeinate\_campaign\_subscription.rb](https://codecov.io/gh/joshmn/caffeinate/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-bGliL2NhZmZlaW5hdGUvcnNwZWMvbWF0Y2hlcnMvZW5kX2NhZmZlaW5hdGVfY2FtcGFpZ25fc3Vic2NyaXB0aW9uLnJi) | `96.87% <96.87%> (ø)` | | | [...c/matchers/unsubscribe\_from\_caffeinate\_campaign.rb](https://codecov.io/gh/joshmn/caffeinate/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-bGliL2NhZmZlaW5hdGUvcnNwZWMvbWF0Y2hlcnMvdW5zdWJzY3JpYmVfZnJvbV9jYWZmZWluYXRlX2NhbXBhaWduLnJi) | `96.87% <96.87%> (ø)` | | | [lib/caffeinate/rspec.rb](https://codecov.io/gh/joshmn/caffeinate/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-bGliL2NhZmZlaW5hdGUvcnNwZWMucmI=) | `100.00% <100.00%> (ø)` | | | [lib/caffeinate/rspec/matchers.rb](https://codecov.io/gh/joshmn/caffeinate/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-bGliL2NhZmZlaW5hdGUvcnNwZWMvbWF0Y2hlcnMucmI=) | `100.00% <100.00%> (ø)` | | | [...c/matchers/be\_subscribed\_to\_caffeinate\_campaign.rb](https://codecov.io/gh/joshmn/caffeinate/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-bGliL2NhZmZlaW5hdGUvcnNwZWMvbWF0Y2hlcnMvYmVfc3Vic2NyaWJlZF90b19jYWZmZWluYXRlX2NhbXBhaWduLnJi) | `100.00% <100.00%> (ø)` | | | [...chers/be\_subscribed\_to\_caffeinate\_campaign\_spec.rb](https://codecov.io/gh/joshmn/caffeinate/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3BlYy9jYWZmZWluYXRlL3JzcGVjL21hdGNoZXJzL2JlX3N1YnNjcmliZWRfdG9fY2FmZmVpbmF0ZV9jYW1wYWlnbl9zcGVjLnJi) | `100.00% <100.00%> (ø)` | | | [...chers/end\_caffeinate\_campaign\_subscription\_spec.rb](https://codecov.io/gh/joshmn/caffeinate/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3BlYy9jYWZmZWluYXRlL3JzcGVjL21hdGNoZXJzL2VuZF9jYWZmZWluYXRlX2NhbXBhaWduX3N1YnNjcmlwdGlvbl9zcGVjLnJi) | `100.00% <100.00%> (ø)` | | | [.../matchers/subscribe\_to\_caffeinate\_campaign\_spec.rb](https://codecov.io/gh/joshmn/caffeinate/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3BlYy9jYWZmZWluYXRlL3JzcGVjL21hdGNoZXJzL3N1YnNjcmliZV90b19jYWZmZWluYXRlX2NhbXBhaWduX3NwZWMucmI=) | `100.00% <100.00%> (ø)` | | | [...chers/unsubscribe\_from\_caffeinate\_campaign\_spec.rb](https://codecov.io/gh/joshmn/caffeinate/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3BlYy9jYWZmZWluYXRlL3JzcGVjL21hdGNoZXJzL3Vuc3Vic2NyaWJlX2Zyb21fY2FmZmVpbmF0ZV9jYW1wYWlnbl9zcGVjLnJi) | `100.00% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.