diff options
Diffstat (limited to 'spec/lib/gitlab/bitbucket_import/importer_spec.rb')
-rw-r--r-- | spec/lib/gitlab/bitbucket_import/importer_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/lib/gitlab/bitbucket_import/importer_spec.rb b/spec/lib/gitlab/bitbucket_import/importer_spec.rb index b723c31c4aa..e0a7044e5f9 100644 --- a/spec/lib/gitlab/bitbucket_import/importer_spec.rb +++ b/spec/lib/gitlab/bitbucket_import/importer_spec.rb @@ -328,6 +328,7 @@ RSpec.describe Gitlab::BitbucketImport::Importer do expect(project.issues.where(state_id: Issue.available_states[:closed]).size).to eq(5) expect(project.issues.where(state_id: Issue.available_states[:opened]).size).to eq(2) + expect(project.issues.map(&:namespace_id).uniq).to match_array([project.project_namespace_id]) end describe 'wiki import' do @@ -362,6 +363,14 @@ RSpec.describe Gitlab::BitbucketImport::Importer do expect(project.issues.where("description LIKE ?", '%reporter3%').size).to eq(1) expect(importer.errors).to be_empty end + + it 'sets work item type on new issues' do + allow(importer).to receive(:import_wiki) + + importer.execute + + expect(project.issues.map(&:work_item_type_id).uniq).to contain_exactly(WorkItems::Type.default_issue_type.id) + end end context 'metrics' do |