提交 86661a3a 编写于 作者: S Stan Hu

Use build instead of create in importer spec

上级 917a112e
......@@ -135,7 +135,7 @@ describe Gitlab::BareRepositoryImport::Importer, repository: true do
it 'moves an existing project to the correct path' do
# This is a quick way to get a valid repository instead of copying an existing one
project = create(:project, :repository)
project = build(:project, :repository)
original_commit_count = project.repository.commit_count
# We need to destroy the model but keep the repository so that the
# importer will attempt to load the repository
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册