test: ruby: simplify output comparison