Changed "-> () {}" for "proc {}" so tests will work on ruby 1.8
Replaced json-style hashes for spaceship operator hashes

For ruby 1.8 compatibility