diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-15 12:10:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-15 12:10:09 +0300 |
commit | 9bd7e5997e1452257e3861555c151764cf0574d7 (patch) | |
tree | a5c429831f37884520e0dfbacfc89bb616dc5577 /spec/lib/gitlab/bare_repository_import | |
parent | 4b41b57abf3ad9c2e0e81b3804cb01af6f879349 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/bare_repository_import')
-rw-r--r-- | spec/lib/gitlab/bare_repository_import/importer_spec.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/spec/lib/gitlab/bare_repository_import/importer_spec.rb b/spec/lib/gitlab/bare_repository_import/importer_spec.rb index bbf8d81b251..8fb903154f3 100644 --- a/spec/lib/gitlab/bare_repository_import/importer_spec.rb +++ b/spec/lib/gitlab/bare_repository_import/importer_spec.rb @@ -2,12 +2,12 @@ require 'spec_helper' -RSpec.describe Gitlab::BareRepositoryImport::Importer, :seed_helper do +RSpec.describe Gitlab::BareRepositoryImport::Importer do let!(:admin) { create(:admin) } let!(:base_dir) { Dir.mktmpdir + '/' } let(:bare_repository) { Gitlab::BareRepositoryImport::Repository.new(base_dir, File.join(base_dir, "#{project_path}.git")) } let(:gitlab_shell) { Gitlab::Shell.new } - let(:source_project) { TEST_REPO_PATH } + let(:source_project) { TestEnv.factory_repo_bundle_path } subject(:importer) { described_class.new(admin, bare_repository) } @@ -17,8 +17,6 @@ RSpec.describe Gitlab::BareRepositoryImport::Importer, :seed_helper do after do FileUtils.rm_rf(base_dir) - TestEnv.clean_test_path - ensure_seeds end shared_examples 'importing a repository' do @@ -150,7 +148,6 @@ RSpec.describe Gitlab::BareRepositoryImport::Importer, :seed_helper do end context 'with a repository already on disk' do - let!(:base_dir) { TestEnv.repos_path } # This is a quick way to get a valid repository instead of copying an # existing one. Since it's not persisted, the importer will try to # create the project. |