summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/export/pdf/issues_pdf_test.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb b/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb
index 4dd40b9fc..e150aca84 100644
--- a/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb
+++ b/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb
@@ -33,8 +33,13 @@ class IssuesPdfHelperTest < ActiveSupport::TestCase
time_entry = TimeEntry.create!(:spent_on => Date.today, :hours => 4.3432, :user => user, :author => user,
:project_id => 1, :issue => issue, :activity => TimeEntryActivity.first)
- results = fetch_row_values(issue, query, 0)
- assert_equal ["2", "Add ingredients categories", "4.34"], results
+ to_test = {'en' => '4.34', 'de' => '4,34'}
+ to_test.each do |locale, expected|
+ with_locale locale do
+ results = fetch_row_values(issue, query, 0)
+ assert_equal ['2', 'Add ingredients categories', expected], results
+ end
+ end
end
def test_fetch_row_values_should_be_able_to_handle_parent_issue_subject