Fix failing spec with Ruby 1.9