Fixed specs

The specs would not work with all versions of ruby.  This patch fixes that issue.