diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-11-09 05:08:26 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-11-09 05:08:26 +0900 |
commit | af91eff3fa395a0a57f8002b3b92e5d053cd2d7d (patch) | |
tree | 8118cb2078ff96f1c075f5ba6cc7637b2352ac7a /activerecord/test | |
parent | 65aa0b7e3448f849a91b6f510b78d4303ff44dbc (diff) | |
download | rails-af91eff3fa395a0a57f8002b3b92e5d053cd2d7d.tar.gz rails-af91eff3fa395a0a57f8002b3b92e5d053cd2d7d.tar.bz2 rails-af91eff3fa395a0a57f8002b3b92e5d053cd2d7d.zip |
Consolidate redundant `if` and `unless` with the same condition
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/transaction_isolation_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/test/cases/transaction_isolation_test.rb b/activerecord/test/cases/transaction_isolation_test.rb index b1ebccdcc3..eaafd13360 100644 --- a/activerecord/test/cases/transaction_isolation_test.rb +++ b/activerecord/test/cases/transaction_isolation_test.rb @@ -15,9 +15,7 @@ unless ActiveRecord::Base.connection.supports_transaction_isolation? end end end -end - -if ActiveRecord::Base.connection.supports_transaction_isolation? +else class TransactionIsolationTest < ActiveRecord::TestCase self.use_transactional_tests = false |