-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add expect_issue
and expect_no_issues
spec helpers
#245
Conversation
Thanks for the suggestion.
|
Perhaps Sorbet-style errors would be an improvement? For example:
This is possible, yes. |
987ad81
to
d3999cf
Compare
Yeah, sorbet-style errors look great to me. |
I might start working on some form of autocorrect now. How does that sound? |
That would be very helpful. Would you mind to do the following as part of this PR:
I can convert rest of the specs on my own |
I already converted most uses of Or if it's easier, I've pushed this to my fork in the |
Also, let me know if I should add more tests for |
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.
I left just a couple of minor comments, but overall it's great! These helpers will make testing much more pleasant ❤️
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.
LGTM 💟
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.
Looks good, I've added a few style-related comments.
expect_issue
and expect_no_issues
spec helpers
These are based on RuboCop's
expect_offense
andexpect_no_offenses
.Todo:
AnnotatedSource
Future PRs:
diff
shard or similar to generate diffs inexpect_issue
Add autocorrectAdd autocorrect #248Old:
New: