A note on the spectral characterization of θ-graphs