Permalink
Browse files

last_use is set on connection lease

  • Loading branch information...
1 parent 134cc8f commit 79306de791ad69559c0806b376233d9d8803ac59 @tenderlove tenderlove committed Nov 29, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 activerecord/test/cases/connection_adapters/abstract_adapter_test.rb
@@ -20,6 +20,12 @@ def test_lease_twice
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

0 comments on commit 79306de

Please sign in to comment.