Update specs to work on more recent versions of ruby