Fixes spec tests on Ruby 1.8
Fixes spec tests for Ruby 1.8