testing error_messages rails 2.3

If you're manually formatting validation error messages, you're probably working too hard. Take a look at the documentation for ActiveRecord::Errors#generate_message to handle this.

--Matt Jones