summaryrefslogtreecommitdiff
path: root/spec/tasks
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2017-01-09 18:38:53 +0100
committerAdam Niedzielski <adamsunday@gmail.com>2017-01-09 18:38:53 +0100
commit82692ea2140fc35cca4157050c29abffbc5d71b0 (patch)
treee65da4bfabf4fe9d91fe8f1fa8a3dac3fd4b80b2 /spec/tasks
parenta8177e03e5eeade5b8af405dbb4bcd8a6d06bb0a (diff)
downloadgitlab-ce-82692ea2140fc35cca4157050c29abffbc5d71b0.tar.gz
Restore backup correctly when "BACKUP" environment variable is passedrestore-backup-when-env-variable-is-passed
Diffstat (limited to 'spec/tasks')
-rw-r--r--spec/tasks/gitlab/backup_rake_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb
index a9fea5f1e81..bc751d20ce1 100644
--- a/spec/tasks/gitlab/backup_rake_spec.rb
+++ b/spec/tasks/gitlab/backup_rake_spec.rb
@@ -41,7 +41,7 @@ describe 'gitlab:app namespace rake task' do
context 'gitlab version' do
before do
- allow(Dir).to receive(:glob).and_return([])
+ allow(Dir).to receive(:glob).and_return(['1_gitlab_backup.tar'])
allow(Dir).to receive(:chdir)
allow(File).to receive(:exist?).and_return(true)
allow(Kernel).to receive(:system).and_return(true)