config/default.yml in rubocop-minitest-0.6.2 vs config/default.yml in rubocop-minitest-0.7.0
- old
+ new
@@ -43,21 +43,26 @@
StyleGuide: 'https://github.com/rubocop-hq/minitest-style-guide#assert-nil'
Enabled: true
VersionAdded: '0.1'
Minitest/AssertRespondTo:
- Description: 'This cop enforces the test to use `assert_respond_to(object, :some_method)` over `assert(object.respond_to?(:some_method))`.'
+ Description: 'This cop enforces the test to use `assert_respond_to(object, :do_something)` over `assert(object.respond_to?(:do_something))`.'
StyleGuide: 'https://github.com/rubocop-hq/minitest-style-guide#assert-responds-to-method'
Enabled: true
VersionAdded: '0.3'
Minitest/AssertTruthy:
Description: 'This cop enforces the test to use `assert(actual)` instead of using `assert_equal(true, actual)`.'
StyleGuide: 'https://github.com/rubocop-hq/minitest-style-guide#assert-truthy'
Enabled: true
VersionAdded: '0.2'
+Minitest/GlobalExpectations:
+ Description: 'This cop checks for deprecated global expectations.'
+ Enabled: true
+ VersionAdded: '0.7'
+
Minitest/RefuteEmpty:
Description: 'This cop enforces to use `refute_empty` instead of using `refute(object.empty?)`.'
StyleGuide: 'https://github.com/rubocop-hq/minitest-style-guide#refute-empty'
Enabled: true
VersionAdded: '0.3'
@@ -97,9 +102,9 @@
StyleGuide: 'https://github.com/rubocop-hq/minitest-style-guide#refute-nil'
Enabled: true
VersionAdded: '0.2'
Minitest/RefuteRespondTo:
- Description: 'This cop enforces the test to use `refute_respond_to(object, :some_method)` over `refute(object.respond_to?(:some_method))`.'
+ Description: 'This cop enforces the test to use `refute_respond_to(object, :do_something)` over `refute(object.respond_to?(:do_something))`.'
StyleGuide: 'https://github.com/rubocop-hq/minitest-style-guide#refute-respond-to'
Enabled: true
VersionAdded: '0.4'