```ruby
expect(lines.map(&:class)).to be_all { |c| c == String }
```
might read better. What do you think?