Add repository housekeeping methods to wikis

parent 428ba0dc
......@@ -3,6 +3,7 @@
class Wiki
extend ::Gitlab::Utils::Override
include HasRepository
include CanHousekeepRepository
include Gitlab::Utils::StrongMemoize
include GlobalID::Identification
......
......@@ -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
......@@ -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
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