Fix test_index and test_rindex fail on ruby-2.x
String#index(i) and String#rindex(i) do not accept Numeric as a parameter on ruby-2.0 or later.
Authored by: kimuraw 2014-06-11
Parent: [r2543]
Child: [r2545]