Rails3 compatibility: test: replace deprecated errors.on