diff options
author | James Lopez <james@jameslopez.es> | 2017-09-05 21:06:27 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-09-05 21:06:27 +0200 |
commit | 104f221b601621cdfdd083f82780188c84190a1c (patch) | |
tree | 0973247abd5e9cbfa1c0f1d091d7a26f3c808838 /spec/lib/gitlab/import_export/project_tree_restorer_spec.rb | |
parent | 1d57ae8f8410e814e79ea0a6bbb9c714aad37e4f (diff) | |
download | gitlab-ce-104f221b601621cdfdd083f82780188c84190a1c.tar.gz |
fix specs
Diffstat (limited to 'spec/lib/gitlab/import_export/project_tree_restorer_spec.rb')
-rw-r--r-- | spec/lib/gitlab/import_export/project_tree_restorer_spec.rb | 4 |
1 files changed, 2 insertions, 2 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 5b16fc5d084..d664d371028 100644 --- a/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb +++ b/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb @@ -11,8 +11,8 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do allow(@shared).to receive(:export_path).and_return('spec/lib/gitlab/import_export/') @project = create(:project, :builds_disabled, :issues_disabled, name: 'project', path: 'project') - allow(@project.repository).to receive(:fetch_ref).and_return(true) - allow(@project.repository.raw).to receive(:rugged_branch_exists?).and_return(false) + allow_any_instance_of(Repository).to receive(:fetch_ref).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') allow_any_instance_of(Gitlab::Git::Repository).to receive(:create_branch) |