Commit 99fd78d6 authored by Stan Hu's avatar Stan Hu

Add spec for invalid options in project creation

parent 8d552700
...@@ -49,6 +49,13 @@ describe Projects::CreateService, services: true do ...@@ -49,6 +49,13 @@ describe Projects::CreateService, services: true do
it { expect(@project.namespace).to eq(@group) } it { expect(@project.namespace).to eq(@group) }
end end
context 'error handling' do
it 'handles invalid options' do
@opts.merge!({ default_branch: 'master' } )
expect(create_project(@user, @opts)).to eq(nil)
end
end
context 'wiki_enabled creates repository directory' do context 'wiki_enabled creates repository directory' do
context 'wiki_enabled true creates wiki repository directory' do context 'wiki_enabled true creates wiki repository directory' do
before do before do
......
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