Fix Style/NegatedIf rubocop issue

This commit is contained in:
Bertocq
2017-07-04 22:49:18 +02:00
parent 28970c6701
commit 29b58298db
2 changed files with 1 additions and 7 deletions

View File

@@ -388,12 +388,6 @@ Style/MutableConstant:
- 'lib/tag_sanitizer.rb' - 'lib/tag_sanitizer.rb'
- 'lib/wysiwyg_sanitizer.rb' - 'lib/wysiwyg_sanitizer.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/NegatedIf:
Exclude:
- 'spec/spec_helper.rb'
# Offense count: 17 # Offense count: 17
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/NestedParenthesizedCalls: Style/NestedParenthesizedCalls:

View File

@@ -47,7 +47,7 @@ RSpec.configure do |config|
# with the specs, so continue to use transaction strategy for speed. # with the specs, so continue to use transaction strategy for speed.
driver_shares_db_connection_with_specs = Capybara.current_driver == :rack_test 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 # Driver is probably for an external browser with an app
# under test that does *not* share a database connection with the # under test that does *not* share a database connection with the
# specs, so use truncation strategy. # specs, so use truncation strategy.