Vote #68931
完了Test test_due_date_distance_in_words fail due to undefined locale
0%
説明
Overloaded @ActiveView::Helpers::DateHelper::due_date_distance_in_words()@ method returns a localized string which depends upon current I18n.locale value.
When running in a batch, the test @test_due_date_distance_in_words@ fail if this value have been set by a previous translation test to something else than default 'en'.
Test trace :
<"over 54 years late"> expected but was <"oltre 54 anni di ritardo">. test/unit/helpers/application_helper_test.rb:615:in `test_due_date_distance_in_words' test/unit/helpers/application_helper_test.rb:614:in `each' test/unit/helpers/application_helper_test.rb:614:in `test_due_date_distance_in_words' D:\install\eclipse_b\eclipse\configuration\org.eclipse.osgi\bundles\948\1\.cp\testing\dltk-testunit-runner.rb:77:in `start'
journals
r4677 should fix it.
--------------------------------------------------------------------------------
Merged in 1.1-stable.
--------------------------------------------------------------------------------