-
-
Notifications
You must be signed in to change notification settings - Fork 277
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 support assert_empty
, assert_not_empty
and refute_empty
for RSpec/Rails/MinitestAssertions
#1778
Conversation
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.
Nice refactoring, and nice addition. Thank you!
6095eb7
to
9d402fe
Compare
9d402fe
to
4d3da80
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.
I think be_empty is a better replacement. A hash or string will be matched by minitest, too?
4d3da80
to
62c0ab5
Compare
"expect(#{@actual.source}).#{runner}(eq(#{@expected.source})," \ | ||
" #{@fail_message.source})" |
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 will enable Layout/LineContinuationLeadingSpace
in a later PR 😉
62c0ab5
to
a23d4e6
Compare
Thank you for review. I updated this PR. |
This is a really cool addition and refactor! I love having the dedicated mini classes for each assertion group |
… `RSpec/Rails/MinitestAssertions`
de8cdd4
to
32eb847
Compare
This PR is add support
assert_empty
,assert_not_empty
andrefute_empty
forRSpec/Rails/MinitestAssertions
.Related to rubocop/rubocop-rspec_rails#7
Before submitting the PR make sure the following are checked:
master
(if not - rebase it).CHANGELOG.md
if the new code introduces user-observable changes.bundle exec rake
) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).