fixed spec for Ruby 1.8.7