Use idiomatic Ruby

This commit is contained in:
Dmitry Semenyuk 2017-11-16 15:35:09 +03:00 committed by GitHub
parent 8c14a276dd
commit 14fbea7fa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -295,7 +295,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.