Fix spec to work in 1.9 & 1.8

Array#to_s behaves differently in the two versions.