attendのspecとrefactoring