Fix spec to work with Ruby 2.0.0

This change fixes a spec that has different behaviour in Ruby 2.0.0.  I'm not sure whether this is the right answer, though.