Add field separator option to CSV export dialog (#37621).

Patch by Karel Pičman.


git-svn-id: https://svn.redmine.org/redmine/trunk@22359 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2023-10-21 06:19:13 +00:00
parent a69b43d580
commit 6a7f2536b5
12 changed files with 56 additions and 2 deletions

View File

@@ -2244,6 +2244,20 @@ class ApplicationHelperTest < Redmine::HelperTest
end
end
def test_export_csv_separator_select_tag
with_locale 'en' do
result = export_csv_separator_select_tag
assert_equal ',', l(:general_csv_separator)
assert_select_in result, 'option[value=?][selected=selected]', ',', text: 'Comma'
assert_select_in result, 'option[value=?]', ';', text: 'Semicolon'
end
with_locale 'fr' do
result = export_csv_separator_select_tag
assert_equal ';', l(:general_csv_separator)
assert_select_in result, 'option[value=?][selected=selected]', ';'
end
end
private
def wiki_links_with_special_characters