summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-07-24 17:52:11 +0200
committerJacob Vosmaer <jacob@gitlab.com>2018-07-25 11:31:02 +0200
commit7eecc4fa1c06d99fac83b644267f798bd6b03b44 (patch)
treec6304bcb818d39627f777b9b7c1fd82778023cb5
parentb5c4c04281f361ba2aafa6c2850d4371c594ab0e (diff)
downloadgitlab-ce-gitaly-mandatory-fetch-ref.tar.gz
Fix tree restorer specgitaly-mandatory-fetch-ref
-rw-r--r--spec/lib/gitlab/import_export/project_tree_restorer_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb b/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
index bac5693c830..a88ac0a091e 100644
--- a/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
+++ b/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
@@ -16,7 +16,7 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
@shared = @project.import_export_shared
allow(@shared).to receive(:export_path).and_return('spec/lib/gitlab/import_export/')
- allow_any_instance_of(Repository).to receive(:fetch_ref).and_return(true)
+ allow_any_instance_of(Repository).to receive(:fetch_source_branch!).and_return(true)
allow_any_instance_of(Gitlab::Git::Repository).to receive(:branch_exists?).and_return(false)
expect_any_instance_of(Gitlab::Git::Repository).to receive(:create_branch).with('feature', 'DCBA')