From f636e7f33b421105021af3aa79c36e738fba96a1 Mon Sep 17 00:00:00 2001 From: Kouhei Yanagita Date: Tue, 24 Dec 2024 20:30:44 +0900 Subject: [PATCH] [DOC] Fix markup for lists --- docs/modules/ROOT/pages/cops_rspec.adoc | 2 ++ lib/rubocop/cop/rspec/contain_exactly.rb | 1 + lib/rubocop/cop/rspec/match_array.rb | 1 + 3 files changed, 4 insertions(+) diff --git a/docs/modules/ROOT/pages/cops_rspec.adoc b/docs/modules/ROOT/pages/cops_rspec.adoc index 3e81d5240..85a6c21ef 100644 --- a/docs/modules/ROOT/pages/cops_rspec.adoc +++ b/docs/modules/ROOT/pages/cops_rspec.adoc @@ -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. @@ -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. diff --git a/lib/rubocop/cop/rspec/contain_exactly.rb b/lib/rubocop/cop/rspec/contain_exactly.rb index 65eb8742f..bdb44ed8d 100644 --- a/lib/rubocop/cop/rspec/contain_exactly.rb +++ b/lib/rubocop/cop/rspec/contain_exactly.rb @@ -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. # diff --git a/lib/rubocop/cop/rspec/match_array.rb b/lib/rubocop/cop/rspec/match_array.rb index b92e5f227..17e32a907 100644 --- a/lib/rubocop/cop/rspec/match_array.rb +++ b/lib/rubocop/cop/rspec/match_array.rb @@ -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. #