fix specs for RUBY_VERSION < 2.0