fix for ruby < 2

Removing ruby 2 specific syntax. We should not be dependant on ruby 2 in the specs