mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
fix locale spec by adding time formats into dummy locale
This commit is contained in:
parent
99d742e3d0
commit
3e1a9fc107
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user