merge ActiveSupport::Inflector code in spec_helper