mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user