summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-12-10 23:38:55 -0800
committerStan Hu <stanhu@gmail.com>2017-12-10 23:38:55 -0800
commit86661a3a0be3ef3a3aa7780705c84ee3f37e5b0e (patch)
tree42b1dfa5acc7c1a3e4705582c305bb15e221d76a
parent917a112ef08dbe217818e3ec00cb03218f77d030 (diff)
downloadgitlab-ce-86661a3a0be3ef3a3aa7780705c84ee3f37e5b0e.tar.gz
Use build instead of create in importer spec
-rw-r--r--spec/lib/gitlab/bare_repository_import/importer_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/bare_repository_import/importer_spec.rb b/spec/lib/gitlab/bare_repository_import/importer_spec.rb
index 52dbfeb2999..cce491fa10e 100644
--- a/spec/lib/gitlab/bare_repository_import/importer_spec.rb
+++ b/spec/lib/gitlab/bare_repository_import/importer_spec.rb
@@ -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