Refactor associations specs into testing for multiline strings