diff --git a/spec/lib/gitlab/bare_repository_import/importer_spec.rb b/spec/lib/gitlab/bare_repository_import/importer_spec.rb index 920819cf382..07cc73ee479 100644 --- a/spec/lib/gitlab/bare_repository_import/importer_spec.rb +++ b/spec/lib/gitlab/bare_repository_import/importer_spec.rb @@ -167,7 +167,8 @@ describe Gitlab::BareRepositoryImport::Importer, repository: true do FileUtils.mkdir_p(File.join(base_dir, "#{project_path}.git")) FileUtils.mkdir_p(File.join(base_dir, "#{project_path}.wiki.git")) - expect(Projects::CreateService).to receive(:new).with(admin, hash_including(skip_import: true)).and_call_original + expect(Projects::CreateService).to receive(:new).with(admin, hash_including(skip_wiki: true, + skip_import: true)).and_call_original importer.create_project_if_needed