Rename @codes to CODES and move it to the spec helper