Skip to content

Commit

Permalink
Update spec/rubocop/cop/rails/compact_blank_spec.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Koichi ITO <[email protected]>
  • Loading branch information
r7kamura and koic authored Aug 6, 2022
1 parent 54c123a commit 8a02019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rubocop/cop/rails/compact_blank_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8a02019

Please sign in to comment.