Fix specs for ruby version < 1.9.3.