[V2] Rails3 compatibility: test: replace deprecated errors.on

Rebased #400.