diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2019-01-02 18:05:40 +0300 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2019-01-29 17:38:40 +0300 |
commit | 852e68fd952b18ba32b87c165bb17c370965d756 (patch) | |
tree | 3aea29b3ec0f8b138738b28885f1794ea7d40eac /spec/lib/gitlab/github_import/importer | |
parent | fda30abdb2a88f360b20f99f3cefe0850d4e9f18 (diff) |
Revert "Trigger iid logic from GitHub importer for milestones."
This reverts commit 358675d09f6ba0fdcc4a089c6d1da6df9ff6d092.
Diffstat (limited to 'spec/lib/gitlab/github_import/importer')
-rw-r--r-- | spec/lib/gitlab/github_import/importer/milestones_importer_spec.rb | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/spec/lib/gitlab/github_import/importer/milestones_importer_spec.rb b/spec/lib/gitlab/github_import/importer/milestones_importer_spec.rb index db0be760c7b..b1cac3b6e46 100644 --- a/spec/lib/gitlab/github_import/importer/milestones_importer_spec.rb +++ b/spec/lib/gitlab/github_import/importer/milestones_importer_spec.rb @@ -29,25 +29,13 @@ describe Gitlab::GithubImport::Importer::MilestonesImporter, :clean_gitlab_redis expect(importer) .to receive(:bulk_insert) - .with(Milestone, [milestone_hash], any_args) + .with(Milestone, [milestone_hash]) expect(importer) .to receive(:build_milestones_cache) importer.execute end - - it 'tracks internal ids' do - milestone_hash = { iid: 1, title: '1.0', project_id: project.id } - allow(importer) - .to receive(:build_milestones) - .and_return([milestone_hash]) - - expect(InternalId).to receive(:track_greatest) - .with(nil, { project: project }, :milestones, 1, any_args) - - importer.execute - end end describe '#build_milestones' do |