Project

General

Profile

Actions

Defect #7266

closed

Test test_due_date_distance_in_words fail due to undefined locale

Added by Etienne Massip almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
I18n
Target version:
Start date:
2011-01-10
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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'

Actions

Also available in: Atom PDF