diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 766c7a3275..1d4f9d01bf 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -907,13 +907,6 @@ Style/OptionalBooleanParameter: - 'lib/spree/core/controller_helpers/order.rb' - 'spec/support/request/web_helper.rb' -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions. -Style/ParenthesesAroundCondition: - Exclude: - - 'spec/system/support/precompile_assets.rb' - # Offense count: 1 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. diff --git a/spec/system/support/precompile_assets.rb b/spec/system/support/precompile_assets.rb index 2cf819cbf1..cb137f19e6 100644 --- a/spec/system/support/precompile_assets.rb +++ b/spec/system/support/precompile_assets.rb @@ -7,10 +7,9 @@ RSpec.configure do |config| # rspec --tag ~type:system # # In this case, we don't need to precompile assets. - next if ( + next if config.filter.opposite.rules[:type] == "system" || config.exclude_pattern.match?(%r{spec/system}) - ) config.before(:suite) do # We can use webpack-dev-server for tests, too!