Skip to content

Commit

Permalink
Merge pull request #2013 from kyanagi/fix_list_markup
Browse files Browse the repository at this point in the history
[DOC] Fix markup for lists
  • Loading branch information
ydah authored Dec 24, 2024
2 parents 483d00b + f636e7f commit f423768
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/modules/ROOT/pages/cops_rspec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ expect(object).to be_a_kind_of(String)
Checks where `contain_exactly` is used.
This cop checks for the following:
- Prefer `match_array` when matching array values.
- Prefer `be_empty` when using `contain_exactly` with no arguments.
Expand Down Expand Up @@ -3381,6 +3382,7 @@ end
Checks where `match_array` is used.
This cop checks for the following:
- Prefer `contain_exactly` when matching an array with values.
- Prefer `eq` when using `match_array` with an empty array literal.
Expand Down
1 change: 1 addition & 0 deletions lib/rubocop/cop/rspec/contain_exactly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module RSpec
# Checks where `contain_exactly` is used.
#
# This cop checks for the following:
#
# - Prefer `match_array` when matching array values.
# - Prefer `be_empty` when using `contain_exactly` with no arguments.
#
Expand Down
1 change: 1 addition & 0 deletions lib/rubocop/cop/rspec/match_array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module RSpec
# Checks where `match_array` is used.
#
# This cop checks for the following:
#
# - Prefer `contain_exactly` when matching an array with values.
# - Prefer `eq` when using `match_array` with an empty array literal.
#
Expand Down

0 comments on commit f423768

Please sign in to comment.