Skip to content

Commit

Permalink
Remove delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhacaz committed Feb 13, 2024
1 parent 89d98fa commit 8a6694b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rubocop/cop/rspec/aggregate_examples/language.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def +(other)
self.class.new(selectors + other.selectors)
end

delegate :include?, to: :selectors
def include?(other)
selectors.include?(other)
end

def block_pattern
"(block #{send_pattern} ...)"
Expand Down

0 comments on commit 8a6694b

Please sign in to comment.