ruby: add test

Closes #27179.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>