Ruby code testing