Fixes spec tests on Ruby 1.8