Fix block in cas for Ruby 1.8.7
Merge pull request #153 from fbogsany/fix_187

Fix block in cas for Ruby 1.8.7
Fix tests on ruby 2+