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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
a459e45e
Commit
a459e45e
authored
Jul 28, 2017
by
Michael Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rubocop offense
parent
61239585
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/lib/gitlab/backup/repository_spec.rb
spec/lib/gitlab/backup/repository_spec.rb
+4
-4
No files found.
spec/lib/gitlab/backup/repository_spec.rb
View file @
a459e45e
...
@@ -81,13 +81,13 @@ describe Backup::Repository do
...
@@ -81,13 +81,13 @@ describe Backup::Repository do
end
end
it
'returns false, regardless of bad cache value'
do
it
'returns false, regardless of bad cache value'
do
expect
(
Backup
::
Repository
.
new
.
send
(
:empty_repo?
,
wiki
)).
to
be_falsey
expect
(
described_class
.
new
.
send
(
:empty_repo?
,
wiki
)).
to
be_falsey
end
end
end
end
context
'`repository.exists?` is correctly cached as true'
do
context
'`repository.exists?` is correctly cached as true'
do
it
'returns false'
do
it
'returns false'
do
expect
(
Backup
::
Repository
.
new
.
send
(
:empty_repo?
,
wiki
)).
to
be_falsey
expect
(
described_class
.
new
.
send
(
:empty_repo?
,
wiki
)).
to
be_falsey
end
end
end
end
end
end
...
@@ -102,13 +102,13 @@ describe Backup::Repository do
...
@@ -102,13 +102,13 @@ describe Backup::Repository do
end
end
it
'returns true, regardless of bad cache value'
do
it
'returns true, regardless of bad cache value'
do
expect
(
Backup
::
Repository
.
new
.
send
(
:empty_repo?
,
wiki
)).
to
be_truthy
expect
(
described_class
.
new
.
send
(
:empty_repo?
,
wiki
)).
to
be_truthy
end
end
end
end
context
'`repository.exists?` is correctly cached as false'
do
context
'`repository.exists?` is correctly cached as false'
do
it
'returns true'
do
it
'returns true'
do
expect
(
Backup
::
Repository
.
new
.
send
(
:empty_repo?
,
wiki
)).
to
be_truthy
expect
(
described_class
.
new
.
send
(
:empty_repo?
,
wiki
)).
to
be_truthy
end
end
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