diff options
author | Go MAEDA <maeda@farend.jp> | 2019-01-12 01:34:18 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-01-12 01:34:18 +0000 |
commit | 1f0a1f65ca4065a4d946e06f7d532a07e7e7f2a6 (patch) | |
tree | 461cc9925f1da623b35bc679c22134f9f8434ec1 /test/unit/issue_import_test.rb | |
parent | 62412a4e506cc5cafd86d934a5a0233946b96d54 (diff) | |
download | redmine-1f0a1f65ca4065a4d946e06f7d532a07e7e7f2a6.tar.gz redmine-1f0a1f65ca4065a4d946e06f7d532a07e7e7f2a6.zip |
Merged r17786 and r17787 from trunk to 3.4-stable (#30412).
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@17789 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_import_test.rb')
-rw-r--r-- | test/unit/issue_import_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/issue_import_test.rb b/test/unit/issue_import_test.rb index 3e0eecae6..52960a366 100644 --- a/test/unit/issue_import_test.rb +++ b/test/unit/issue_import_test.rb @@ -115,6 +115,15 @@ class IssueImportTest < ActiveSupport::TestCase assert_equal 2, issues[2].parent_id end + def test_import_utf8_with_bom + import = generate_import_with_mapping('import_issues_utf8_with_bom.csv') + import.settings.merge!('encoding' => 'UTF-8') + import.save + + issues = new_records(Issue,3) { import.run } + assert_equal 3, issues.count + end + def test_backward_and_forward_reference_to_parent_should_work import = generate_import('import_subtasks.csv') import.settings = { |