rspec, and more capable alternative to String#lines