Fix failing specs running with RubyGems 1.8.25.