Fix JRuby and Rubinius failing specs