Ruby based test code