diff options
Diffstat (limited to 'spec/workers/gitlab/github_import/stage/import_pull_requests_reviews_worker_spec.rb')
-rw-r--r-- | spec/workers/gitlab/github_import/stage/import_pull_requests_reviews_worker_spec.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/workers/gitlab/github_import/stage/import_pull_requests_reviews_worker_spec.rb b/spec/workers/gitlab/github_import/stage/import_pull_requests_reviews_worker_spec.rb index 7acf1a338d3..75d4d2dff2e 100644 --- a/spec/workers/gitlab/github_import/stage/import_pull_requests_reviews_worker_spec.rb +++ b/spec/workers/gitlab/github_import/stage/import_pull_requests_reviews_worker_spec.rb @@ -9,23 +9,7 @@ RSpec.describe Gitlab::GithubImport::Stage::ImportPullRequestsReviewsWorker do let(:client) { double(:client) } describe '#import' do - it 'does not import with the feature disabled' do - stub_feature_flags(github_import_pull_request_reviews: false) - - expect(Gitlab::JobWaiter) - .to receive(:new) - .and_return(double(key: '123', jobs_remaining: 0)) - - expect(Gitlab::GithubImport::AdvanceStageWorker) - .to receive(:perform_async) - .with(project.id, { '123' => 0 }, :issues_and_diff_notes) - - worker.import(client, project) - end - it 'imports all the pull request reviews' do - stub_feature_flags(github_import_pull_request_reviews: true) - importer = double(:importer) waiter = Gitlab::JobWaiter.new(2, '123') |