Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-10-04 18:09:33 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-10-04 18:09:33 +0300
commitbf6d126a58a66a11b2e4b9de89986174a1885105 (patch)
treebf2912b22073ed86969a56935d81cae0b73e710b /spec/workers/gitlab/github_import
parent7928b47c8e06c1ac3f63d321a73dd527aea4e4c3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/gitlab/github_import')
-rw-r--r--spec/workers/gitlab/github_import/import_issue_worker_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/workers/gitlab/github_import/import_issue_worker_spec.rb b/spec/workers/gitlab/github_import/import_issue_worker_spec.rb
index c2a7639fde4..ef1d2e3f3e7 100644
--- a/spec/workers/gitlab/github_import/import_issue_worker_spec.rb
+++ b/spec/workers/gitlab/github_import/import_issue_worker_spec.rb
@@ -45,4 +45,15 @@ RSpec.describe Gitlab::GithubImport::ImportIssueWorker do
worker.import(project, client, hash)
end
end
+
+ describe '#increment_object_counter?' do
+ context 'when github issue is a pull request' do
+ let(:issue) { double(:issue, pull_request?: true) }
+ let(:project) { double(:project) }
+
+ it 'returns false' do
+ expect(worker).not_to be_increment_object_counter(issue)
+ end
+ end
+ end
end