rubocop / minitest-style-guide

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

Add Rule to assert/refute Include Of #23

Closed duduribeiro closed 5 years ago

duduribeiro commented 5 years ago

Use assert_instance_of or refute_instance_of to check if a class is or is not an instance of some class.

assert:

 assert_instance_of(String, 'rubocop-minitest')

refute:

 refute_instance_of(String, 'rubocop-minitest')
duduribeiro commented 5 years ago

@bbatsov can you re-review ? thanks 🍻

duduribeiro commented 5 years ago

@koic I commited again.