Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b8f6474e
Commit
b8f6474e
authored
Mar 06, 2020
by
Vijay Hawoldar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken spec covering non-tar backups
parent
f33f8847
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
spec/lib/backup/manager_spec.rb
spec/lib/backup/manager_spec.rb
+10
-7
No files found.
spec/lib/backup/manager_spec.rb
View file @
b8f6474e
...
...
@@ -319,18 +319,21 @@ describe Backup::Manager do
context
'when there is a non-tarred backup in the directory'
do
before
do
allow
(
Dir
).
to
recei
e
ve
(
:glob
).
and_return
(
allow
(
Dir
).
to
receive
(
:glob
).
and_return
(
[
'backup_information.yml'
]
)
allow
(
File
).
to
receive
(
:exist?
).
and_return
(
true
)
end
it
'selects the non-tarred backup to restore from'
do
expect
{
subject
.
unpack
}.
to
output
.
to_stdout
expect
(
Kernel
).
not_to
receive
(
:system
)
subject
.
unpack
expect
(
progress
).
to
have_received
(
:puts
)
.
with
(
a_string_matching
(
'Non tarred backup found '
))
expect
(
Kernel
).
not_to
receive
(
:system
)
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment