describe'#event_commit_title'dolet(:message){"foo & bar "+"A"*70+"\n"+"B"*80}subject{helper.event_commit_title(message)}it"returns the first line, truncated to 70 chars"dois_expected.toeq(message[0..66]+"...")endit"is not html-safe"dois_expected.not_tobe_a(ActiveSupport::SafeBuffer)endit"handles empty strings"doexpect(helper.event_commit_title("")).toeq("")end