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:
authorBalasankar "Balu" C <balasankar@gitlab.com>2018-01-15 18:03:35 +0300
committerBalasankar "Balu" C <balasankar@gitlab.com>2018-01-15 18:03:35 +0300
commitad25ef1f0d7e85e2b9797f30721caab00f62dfc2 (patch)
tree0317b93caa7c155ae77bb0c4b44cb4486b5e4e8f /spec/lib/backup
parent377d5c9ec32f9957eee4a9a397a8d18cad1274ac (diff)
List available backups for restore
Diffstat (limited to 'spec/lib/backup')
-rw-r--r--spec/lib/backup/manager_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/lib/backup/manager_spec.rb b/spec/lib/backup/manager_spec.rb
index b68301a066a..cd498177b81 100644
--- a/spec/lib/backup/manager_spec.rb
+++ b/spec/lib/backup/manager_spec.rb
@@ -194,6 +194,13 @@ describe Backup::Manager do
)
end
+ it 'prints the list of available backups' do
+ expect(progress).to have_received(:puts)
+ .with(a_string_matching('1451606400_2016_01_01_1.2.3'))
+ expect(progress).to have_received(:puts)
+ .with(a_string_matching('1451520000_2015_12_31'))
+ end
+
it 'fails the operation and prints an error' do
expect { subject.unpack }.to raise_error SystemExit
expect(progress).to have_received(:puts)