From 8a02019b3860fede95bbd19390a52e03ffeda533 Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Sat, 6 Aug 2022 12:12:52 +0900 Subject: [PATCH] Update spec/rubocop/cop/rails/compact_blank_spec.rb Co-authored-by: Koichi ITO --- spec/rubocop/cop/rails/compact_blank_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/rubocop/cop/rails/compact_blank_spec.rb b/spec/rubocop/cop/rails/compact_blank_spec.rb index 10f399ba89..a1f459c892 100644 --- a/spec/rubocop/cop/rails/compact_blank_spec.rb +++ b/spec/rubocop/cop/rails/compact_blank_spec.rb @@ -68,7 +68,7 @@ RUBY end - it 'registers and corrects an offense when using reject(&:blank?) in block' do + it 'registers and corrects an offense when using `reject(&:blank?)` in block' do expect_offense(<<~RUBY) hash.transform_values { |value| value.reject(&:blank?) } ^^^^^^^^^^^^^^^^ Use `compact_blank` instead.