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
1394ccfe
Commit
1394ccfe
authored
Apr 18, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Destroy wikis uniformly
parent
fdf6ca6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
single_repository_worker_spec.rb
...workers/repository_check/single_repository_worker_spec.rb
+6
-2
No files found.
spec/workers/repository_check/single_repository_worker_spec.rb
View file @
1394ccfe
...
...
@@ -12,7 +12,7 @@ describe RepositoryCheck::SingleRepositoryWorker do
subject
.
perform
(
project
.
id
)
expect
(
project
.
reload
.
last_repository_check_failed
).
to
eq
(
false
)
FileUtils
.
rm_rf
(
project
.
wiki
.
repository
.
path_to_repo
)
destroy_wiki
(
project
)
subject
.
perform
(
project
.
id
)
expect
(
project
.
reload
.
last_repository_check_failed
).
to
eq
(
true
)
...
...
@@ -21,10 +21,14 @@ describe RepositoryCheck::SingleRepositoryWorker do
it
'skips wikis when disabled'
do
project
=
create
(
:project_empty_repo
,
wiki_enabled:
false
)
# Make sure the test would fail if it checked the wiki repo
FileUtils
.
rm_rf
(
project
.
wiki
.
repository
.
path_to_repo
)
destroy_wiki
(
project
)
subject
.
perform
(
project
.
id
)
expect
(
project
.
reload
.
last_repository_check_failed
).
to
eq
(
false
)
end
def
destroy_wiki
(
project
)
FileUtils
.
rm_rf
(
project
.
wiki
.
repository
.
path_to_repo
)
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