diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2019-01-02 18:16:34 +0300 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2019-01-29 17:38:40 +0300 |
commit | 820739eb09a0182054a7713271a70b912c4a7e27 (patch) | |
tree | 081fc1327483a0874dbb4e594a3a581338d886c9 /spec/lib/gitlab/github_import/importer | |
parent | 852e68fd952b18ba32b87c165bb17c370965d756 (diff) |
Revert "Trigger iid logic from GitHub importer for issues."
This reverts commit b78a69b06c165f7a463d5e0de69030346d9d5c72.
Diffstat (limited to 'spec/lib/gitlab/github_import/importer')
-rw-r--r-- | spec/lib/gitlab/github_import/importer/issue_importer_spec.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/lib/gitlab/github_import/importer/issue_importer_spec.rb b/spec/lib/gitlab/github_import/importer/issue_importer_spec.rb index 65a2e1cb5cb..7901ae005d9 100644 --- a/spec/lib/gitlab/github_import/importer/issue_importer_spec.rb +++ b/spec/lib/gitlab/github_import/importer/issue_importer_spec.rb @@ -78,11 +78,6 @@ describe Gitlab::GithubImport::Importer::IssueImporter, :clean_gitlab_redis_cach .to receive(:id_for) .with(issue) .and_return(milestone.id) - - allow(importer.user_finder) - .to receive(:author_id_for) - .with(issue) - .and_return([user.id, true]) end context 'when the issue author could be found' do @@ -177,23 +172,6 @@ describe Gitlab::GithubImport::Importer::IssueImporter, :clean_gitlab_redis_cach expect(importer.create_issue).to be_a_kind_of(Numeric) end - - it 'triggers internal_id functionality to track greatest iids' do - allow(importer.user_finder) - .to receive(:author_id_for) - .with(issue) - .and_return([user.id, true]) - - issue = build_stubbed(:issue, project: project) - allow(importer) - .to receive(:insert_and_return_id) - .and_return(issue.id) - allow(project.issues).to receive(:find).with(issue.id).and_return(issue) - - expect(issue).to receive(:ensure_project_iid!) - - importer.create_issue - end end describe '#create_assignees' do |