Commit c38014d1 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch '296892-fj-add-housekeeping-methods-to-wikis' into 'master'

Add repository housekeeping methods to wikis

See merge request gitlab-org/gitlab!51567
parents 68ee371d a822a536
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
class Wiki class Wiki
extend ::Gitlab::Utils::Override extend ::Gitlab::Utils::Override
include HasRepository include HasRepository
include CanHousekeepRepository
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
include GlobalID::Identification include GlobalID::Identification
......
...@@ -119,4 +119,10 @@ RSpec.describe GroupWiki do ...@@ -119,4 +119,10 @@ RSpec.describe GroupWiki do
expect(subject).not_to be_a(Elastic::WikiRepositoriesSearch) expect(subject).not_to be_a(Elastic::WikiRepositoriesSearch)
end end
end end
it_behaves_like 'can housekeep repository' do
let_it_be(:resource) { create(:group_wiki) }
let(:resource_key) { 'group_wikis' }
end
end end
...@@ -42,4 +42,10 @@ RSpec.describe ProjectWiki do ...@@ -42,4 +42,10 @@ RSpec.describe ProjectWiki do
end end
end end
end end
it_behaves_like 'can housekeep repository' do
let_it_be(:resource) { create(:project_wiki) }
let(:resource_key) { 'project_wikis' }
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment