docs/modules/ROOT/pages/cops_minitest.adoc in rubocop-minitest-0.20.0 vs docs/modules/ROOT/pages/cops_minitest.adoc in rubocop-minitest-0.20.1
- old
+ new
@@ -617,53 +617,53 @@
Checks for deprecated global expectations
and autocorrects them to use expect format.
=== Examples
-==== EnforcedStyle: _
+==== EnforcedStyle: any (default)
[source,ruby]
----
# bad
musts.must_equal expected_musts
wonts.wont_match expected_wonts
musts.must_raise TypeError
+# good
+_(musts).must_equal expected_musts
+_(wonts).wont_match expected_wonts
+_ { musts }.must_raise TypeError
+
expect(musts).must_equal expected_musts
expect(wonts).wont_match expected_wonts
expect { musts }.must_raise TypeError
value(musts).must_equal expected_musts
value(wonts).wont_match expected_wonts
value { musts }.must_raise TypeError
-
-# good
-_(musts).must_equal expected_musts
-_(wonts).wont_match expected_wonts
-_ { musts }.must_raise TypeError
----
-==== EnforcedStyle: any (default)
+==== EnforcedStyle: _
[source,ruby]
----
# bad
musts.must_equal expected_musts
wonts.wont_match expected_wonts
musts.must_raise TypeError
-# good
-_(musts).must_equal expected_musts
-_(wonts).wont_match expected_wonts
-_ { musts }.must_raise TypeError
-
expect(musts).must_equal expected_musts
expect(wonts).wont_match expected_wonts
expect { musts }.must_raise TypeError
value(musts).must_equal expected_musts
value(wonts).wont_match expected_wonts
value { musts }.must_raise TypeError
+
+# good
+_(musts).must_equal expected_musts
+_(wonts).wont_match expected_wonts
+_ { musts }.must_raise TypeError
----
==== EnforcedStyle: expect
[source,ruby]