[spec] Fix for ruby 1.8

This commit fix unit-tests with ruby 1.8.

(sorry… :-/)