BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
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
end
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
context
'`repository.exists?` is correctly cached as true'
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
...
...
@@ -102,13 +102,13 @@ describe Backup::Repository do
end
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
context
'`repository.exists?` is correctly cached as false'
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
...
...
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