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
a822a536
Commit
a822a536
authored
Jan 13, 2021
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add repository housekeeping methods to wikis
parent
428ba0dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
app/models/wiki.rb
app/models/wiki.rb
+1
-0
ee/spec/models/group_wiki_spec.rb
ee/spec/models/group_wiki_spec.rb
+6
-0
spec/models/project_wiki_spec.rb
spec/models/project_wiki_spec.rb
+6
-0
No files found.
app/models/wiki.rb
View file @
a822a536
...
...
@@ -3,6 +3,7 @@
class
Wiki
extend
::
Gitlab
::
Utils
::
Override
include
HasRepository
include
CanHousekeepRepository
include
Gitlab
::
Utils
::
StrongMemoize
include
GlobalID
::
Identification
...
...
ee/spec/models/group_wiki_spec.rb
View file @
a822a536
...
...
@@ -119,4 +119,10 @@ RSpec.describe GroupWiki do
expect
(
subject
).
not_to
be_a
(
Elastic
::
WikiRepositoriesSearch
)
end
end
it_behaves_like
'can housekeep repository'
do
let_it_be
(
:resource
)
{
create
(
:group_wiki
)
}
let
(
:resource_key
)
{
'group_wikis'
}
end
end
spec/models/project_wiki_spec.rb
View file @
a822a536
...
...
@@ -42,4 +42,10 @@ RSpec.describe ProjectWiki do
end
end
end
it_behaves_like
'can housekeep repository'
do
let_it_be
(
:resource
)
{
create
(
:project_wiki
)
}
let
(
:resource_key
)
{
'project_wikis'
}
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