Commit 1b2a5fb9 authored by Valery Sizov's avatar Valery Sizov
Browse files

Add spec to prove that we don't create wiki when we update project's name

parent 864d5643208d
...@@ -123,6 +123,17 @@ ...@@ -123,6 +123,17 @@
end end
end end
context 'when we update project but not enabling a wiki' do
it 'does not try to create an empty wiki' do
result = update_project(project, user, { name: 'test1' })
expect(result).to eq({ status: :success })
expect(project.wiki_repository_exists?).to be false
context 'when enabling a wiki' do context 'when enabling a wiki' do
it 'creates a wiki' do it 'creates a wiki' do
project.project_feature.update(wiki_access_level: ProjectFeature::DISABLED) project.project_feature.update(wiki_access_level: ProjectFeature::DISABLED)
Supports Markdown
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