diff options
-rw-r--r-- | activerecord/test/cases/connection_adapters/abstract_adapter_test.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/activerecord/test/cases/connection_adapters/abstract_adapter_test.rb b/activerecord/test/cases/connection_adapters/abstract_adapter_test.rb index 3e3d6e2769..1eb9bf60e1 100644 --- a/activerecord/test/cases/connection_adapters/abstract_adapter_test.rb +++ b/activerecord/test/cases/connection_adapters/abstract_adapter_test.rb @@ -10,19 +10,18 @@ module ActiveRecord end def test_in_use? - # FIXME: change to refute in Rails 4.0 / mt - assert !adapter.in_use?, 'adapter is not in use' + refute adapter.in_use?, 'adapter is not in use' assert adapter.lease, 'lease adapter' assert adapter.in_use?, 'adapter is in use' end def test_lease_twice assert adapter.lease, 'should lease adapter' - assert !adapter.lease, 'should not lease adapter' + refute adapter.lease, 'should not lease adapter' end def test_last_use - assert !adapter.last_use + refute adapter.last_use adapter.lease assert adapter.last_use end @@ -31,7 +30,7 @@ module ActiveRecord assert adapter.lease, 'lease adapter' assert adapter.in_use?, 'adapter is in use' adapter.expire - assert !adapter.in_use?, 'adapter is in use' + refute adapter.in_use?, 'adapter is in use' end def test_close @@ -45,7 +44,7 @@ module ActiveRecord # Close should put the adapter back in the pool adapter.close - assert !adapter.in_use? + refute adapter.in_use? assert_equal adapter, pool.connection end |