diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-29 13:16:34 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-29 14:02:58 -0800 |
commit | 79306de791ad69559c0806b376233d9d8803ac59 (patch) | |
tree | 5a31b31902b02e3883fc33ed1da9558a6910c7c0 /activerecord/test | |
parent | 134cc8f9398a9a67b80f3cc26651dcc5c073416c (diff) | |
download | rails-79306de791ad69559c0806b376233d9d8803ac59.tar.gz rails-79306de791ad69559c0806b376233d9d8803ac59.tar.bz2 rails-79306de791ad69559c0806b376233d9d8803ac59.zip |
last_use is set on connection lease
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/connection_adapters/abstract_adapter_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/connection_adapters/abstract_adapter_test.rb b/activerecord/test/cases/connection_adapters/abstract_adapter_test.rb index b2e747c507..3e6f829194 100644 --- a/activerecord/test/cases/connection_adapters/abstract_adapter_test.rb +++ b/activerecord/test/cases/connection_adapters/abstract_adapter_test.rb @@ -20,6 +20,12 @@ module ActiveRecord assert adapter.lease, 'should lease adapter' assert !adapter.lease, 'should not lease adapter' end + + def test_last_use + assert !adapter.last_use + adapter.lease + assert adapter.last_use + end end end end |