Is there a way to turn off ruby-gettext's feature that localizes the default validation/error messages in models? If I use gettext in my application, it breaks almost all of my unit tests. From http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html?ruby-gettext-howto-rails#Models : "Default validation/error messages are also localized automatically."
on 29.04.2008 19:56
on 30.04.2008 19:27
I've managed to fix the problems for the time being.
I've had to make the following change on the majority of the
assertions in my unit tests, but it got the job done:
From:
assert @cp.errors[:package] == "can't be blank"
To:
assert @cp.errors[:package] == "%{fn} can't be blank"