diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 5f0279b73..cb9acce76 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -388,12 +388,6 @@ Style/MutableConstant: - 'lib/tag_sanitizer.rb' - 'lib/wysiwyg_sanitizer.rb' -# Offense count: 1 -# Cop supports --auto-correct. -Style/NegatedIf: - Exclude: - - 'spec/spec_helper.rb' - # Offense count: 17 # Cop supports --auto-correct. Style/NestedParenthesizedCalls: diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e9e055bca..7ef336a4d 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -47,7 +47,7 @@ RSpec.configure do |config| # with the specs, so continue to use transaction strategy for speed. driver_shares_db_connection_with_specs = Capybara.current_driver == :rack_test - if !driver_shares_db_connection_with_specs + unless driver_shares_db_connection_with_specs # Driver is probably for an external browser with an app # under test that does *not* share a database connection with the # specs, so use truncation strategy.