Skip to content

Commit

Permalink
refactor: use one line block
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jan 26, 2024
1 parent e05f1a4 commit 671ef19
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/rubocop/cop/rspec/rails/minitest_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,7 @@ def assertion
const if const.is_a?(Class) && const.superclass == BasicAssertion
end

RESTRICT_ON_SEND = ASSERTION_MATCHERS.flat_map do |m|
m::MATCHERS
end
RESTRICT_ON_SEND = ASSERTION_MATCHERS.flat_map { |m| m::MATCHERS }

ASSERTION_MATCHERS.each do |m|
name = m.name.split('::').last
Expand Down

0 comments on commit 671ef19

Please sign in to comment.