Fixes a NoMethodError in tests with ruby 1.8.6.
Authored by: jplang 2010-11-14
Parent: [r4407]
Child: [r4409]