Fix spec failures in Ruby 1.8 due to new hash style