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
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
spec/workers/repository_check/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