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
0bc79e67
Commit
0bc79e67
authored
Feb 28, 2020
by
Henrik Christian Grove
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove accidently duplicated code
parent
99758b3c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
spec/lib/backup/manager_spec.rb
spec/lib/backup/manager_spec.rb
+0
-24
No files found.
spec/lib/backup/manager_spec.rb
View file @
0bc79e67
...
@@ -238,30 +238,6 @@ describe Backup::Manager do
...
@@ -238,30 +238,6 @@ describe Backup::Manager do
end
end
end
end
describe
'verify_restore'
do
context
'on Version mismatch'
do
let
(
:gitlab_version
)
{
Gitlab
::
VERSION
}
it
'stops the process'
do
allow
(
YAML
).
to
receive
(
:load_file
)
.
and_return
({
gitlab_version:
"not
#{
gitlab_version
}
"
})
expect
{
subject
.
verify_restore
}.
to
raise_error
SystemExit
end
end
context
'on Version match'
do
let
(
:gitlab_version
)
{
Gitlab
::
VERSION
}
it
'does nothing'
do
allow
(
YAML
).
to
receive
(
:load_file
)
.
and_return
({
gitlab_version:
"
#{
gitlab_version
}
"
})
expect
{
subject
.
verify_restore
}.
not_to
raise_error
end
end
end
describe
'#unpack'
do
describe
'#unpack'
do
context
'when there are no backup files in the directory'
do
context
'when there are no backup files in the directory'
do
before
do
before
do
...
...
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