From 012381086c8b0ff03df8102ff4101cab9e07825a Mon Sep 17 00:00:00 2001 From: ydah Date: Fri, 28 Jun 2024 01:02:30 +0900 Subject: [PATCH] Fix a rubocop offense for `Style/SuperArguments` cop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` ❯ bundle exec rubocop Inspecting 258 files ............................................................C..................................................................................................................................................................................................... Offenses: lib/capybara/rspec/matchers/match_style.rb:11:11: C: [Correctable] Style/SuperArguments: Call super without arguments and parentheses when the signature is identical. super(styles, **kw_args, &filter_block) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 258 files inspected, 1 offense detected, 1 offense autocorrectable ``` --- lib/capybara/rspec/matchers/match_style.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capybara/rspec/matchers/match_style.rb b/lib/capybara/rspec/matchers/match_style.rb index 4b60cf9d4d..f96c66d452 100644 --- a/lib/capybara/rspec/matchers/match_style.rb +++ b/lib/capybara/rspec/matchers/match_style.rb @@ -8,7 +8,7 @@ module Matchers class MatchStyle < WrappedElementMatcher def initialize(styles = nil, **kw_args, &filter_block) styles, kw_args = kw_args, {} if styles.nil? - super(styles, **kw_args, &filter_block) + super end def element_matches?(el)