I'm currently doing a pessimistic loking with rails 3 + postgresql. But there seems to be no way to confirm that the lock is working unless I go through the hassle of making a concurrent test. Is there no way to test this via console?
Example
User.transaction do
u1 = User.find(1, :lock => true)
u2 = User.find(1)
## u2 should not be able to do anything right?
end