rails/rails — pull request #6451 by chancancode (2012-05-22 22:34:08+00:00)
Title: Fixes the build break caused by 9ee8528 in #6445.

Ruby 1.8 raises a TypeError when trying to modify a frozen Hash, while
Ruby 1.9 raises a RuntimeError instead. Also, Ruby < 1.9.3 uses a
lowercase 'hash' in the exception message while Ruby >= 1.9.3 uses an
uppercase 'Hash' instead. This commit normalizes those issues in the
test case.