fix: test failed with Ruby 1.9 (refs #3)

`lines` returns Enumerator on 1.9, so we need `to_a`.