test ruby: extract test code as assertion

The test data is most important in the test.