Fix specs to work in JRuby 1.7