Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run tests with Prism 0.25 and fixes the following build errors: ```console $ bundle exec rake (snip) ==> Failures 1) RuboCop::Cop::Performance::RedundantMatch behaves like require no parentheses registers an offense and corrects when argument is `yield` Failure/Error: expect_offense(<<~RUBY, arg: arg) something if /regex/.match(%{arg}) ^^^^^^^^^^^^^^^{arg}^ Use `=~` in places where the `MatchData` returned by `#match` will not be used. RUBY RuntimeError: Error parsing example code: (string):1:28: error: Invalid yield (string):1: something if /regex/.match(yield) (string):1: ^~~~~ Shared Example Group: "require no parentheses" called from ./spec/rubocop/cop/performance/redundant_match_spec.rb:162 # ./spec/rubocop/cop/performance/redundant_match_spec.rb:148:in `block (3 levels) in <top (required)>' 2) RuboCop::Cop::Performance::RedundantMatch behaves like require parentheses registers an offense and corrects when argument is `yield a` Failure/Error: expect_offense(<<~RUBY, arg: arg) something if /regex/.match(%{arg}) ^^^^^^^^^^^^^^^{arg}^ Use `=~` in places where the `MatchData` returned by `#match` will not be used. RUBY RuntimeError: Error parsing example code: (string):1:28: error: Invalid yield (string):1: something if /regex/.match(yield a) (string):1: ^~~~~~~ Shared Example Group: "require parentheses" called from ./spec/rubocop/cop/performance/redundant_match_spec.rb:142 # ./spec/rubocop/cop/performance/redundant_match_spec.rb:126:in `block (3 levels) in <top (required)>' rake aborted! ```
- Loading branch information