Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-20 09:06:16 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-20 09:06:16 +0300
commit0282449e6ea95b54b32acfd2de24c8c5f64a8165 (patch)
tree017b43b103e45ff571d637a5efc77b5ed25c0686 /spec/lib/backup
parent0ecdcf59f4342de55a7d2c3ee4ac0d9c3b116aa5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/backup')
-rw-r--r--spec/lib/backup/repository_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/lib/backup/repository_spec.rb b/spec/lib/backup/repository_spec.rb
index 5f120f258cd..82ae535e100 100644
--- a/spec/lib/backup/repository_spec.rb
+++ b/spec/lib/backup/repository_spec.rb
@@ -12,7 +12,9 @@ describe Backup::Repository do
allow(progress).to receive(:print)
allow(FileUtils).to receive(:mv).and_return(true)
- allow_any_instance_of(described_class).to receive(:progress).and_return(progress)
+ allow_next_instance_of(described_class) do |instance|
+ allow(instance).to receive(:progress).and_return(progress)
+ end
end
describe '#dump' do
@@ -47,7 +49,9 @@ describe Backup::Repository do
describe 'command failure' do
before do
- allow_any_instance_of(Gitlab::Shell).to receive(:create_repository).and_return(false)
+ allow_next_instance_of(Gitlab::Shell) do |instance|
+ allow(instance).to receive(:create_repository).and_return(false)
+ end
end
context 'hashed storage' do