Fix IO object test

This commit is contained in:
Andre Nathan 2013-12-05 17:16:26 -02:00
parent 9d78dac57e
commit 80ccf89619

View file

@ -242,7 +242,7 @@ is_string_array(VALUE v)
static int
is_io(VALUE v)
{
return !strcmp(rb_obj_classname(v), "IO");
return rb_obj_is_kind_of(v, rb_cIO) == Qtrue;
}
static void