binarylogic/authlogic — pull request #292 by iamvery (2011-12-17 04:13:08+00:00)
Title: Lambda wrapped authentic #logged_in & #logged_out scopes

I finally narrowed down an issue I was having where users still showed up as `#logged_in` after the `logged_in_timeout` had passed. I did notice there is already an issue opened addressing this (https://github.com/binarylogic/authlogic/issues/258). Here is a pull request with tests that should fix the problem... I wasn't completely satisfied with how I implemented the test, so if you have a better suggestion, I'd love to hear :)

Also, apparently I was "*really* unlucky" because I couldn't get `#test_random_tokens_are_indeed_random` to pass. It is saying that `SecureRandom` is not defined.. I played around with it for awhile, but I couldn't figure out why I couldn't get to `SecureRandom`. Anyway, maybe you can point me in the right direction there.

Thanks!