Fix spec for ruby 1.8
Merge pull request #153 from rodjek/ruby-1.8

Fix spec for ruby 1.8