rubocop / minitest-style-guide

Best practices for writing your tests
https://minitest.rubystyle.guide
69 stars 15 forks source link

Adds style guide for assert/refute_operator #18

Closed abhaynikam closed 4 years ago

abhaynikam commented 4 years ago

Adds style guide for assert/refute_operator

Example:

# bad
assert(5 > 3)
refute(3 > 5)

# good
assert_operator(5, :>, 3)
refute_operator(3, :>, 5)
abhaynikam commented 4 years ago

@koic @bbatsov : Sorry to tag you. Could you review the open PRs? I wanted to work on adding other style guides but then I end up having a lot of PR conflicts to resolve. Thanks 😊

bbatsov commented 4 years ago

This one looks good to me. Thanks!

abhaynikam commented 4 years ago

🎉