fix locale spec by adding time formats into dummy locale

This commit is contained in:
Adam Meehan 2010-02-04 13:08:00 +11:00
parent 99d742e3d0
commit 3e1a9fc107

View File

@ -513,7 +513,11 @@ describe ValidatesTimeliness::Validator do
describe "localized error messages" do
before(:all) do
I18n.backend.store_translations 'zz', :activerecord => {:errors => {:messages => { :after => 'retfa {{restriction}}' }}}
translations = {
:activerecord => {:errors => {:messages => { :after => 'retfa {{restriction}}' }}},
:validates_timeliness => {:error_value_formats => {}}
}
I18n.backend.store_translations 'zz', translations
I18n.locale = :zz
end