:custom_fields_projects,
:custom_fields_trackers
+ include Redmine::I18n
+
def setup
User.current = nil
@request.session[:user_id] = 2
assert_response :success
assert_select 'select[name=?]', 'import_settings[separator]'
assert_select 'select[name=?]', 'import_settings[wrapper]'
- assert_select 'select[name=?]', 'import_settings[encoding]'
+ assert_select 'select[name=?]', 'import_settings[encoding]' do
+ encodings = valid_languages.map do |lang|
+ ll(lang.to_s, :general_csv_encoding)
+ end.uniq
+ encodings.each do |encoding|
+ assert_select 'option[value=?]', encoding
+ end
+ end
assert_select 'select[name=?]', 'import_settings[date_format]'
end