Skip to content

Commit

Permalink
Remove ActiveSupport usage delegate (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhacaz authored Feb 13, 2024
1 parent 89d98fa commit 756a8cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ inherit_gem:
Naming/FileName:
Exclude:
- lib/rubocop-petal.rb
Rails/Output:
Enabled: false
Rails/RakeEnvironment:
Rails:
Enabled: false
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# main

* Remove usage of `delegate` from activesupport. ([#78](https://github.com/petalmd/rubocop-petal/pull/78))

# v1.3.0 (2024-01-09)

* Added autocorrection for `RSpec/MultipleExpectations`.
Expand Down
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?(selector)
selectors.include?(selector)
end

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

0 comments on commit 756a8cf

Please sign in to comment.