Test ruby code block