Add spec for invalid options in project creation

This commit is contained in:
Stan Hu 2015-12-08 21:49:24 -08:00
parent 8d5527007a
commit 99fd78d6db

View file

@ -49,6 +49,13 @@ describe Projects::CreateService, services: true do
it { expect(@project.namespace).to eq(@group) }
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 true creates wiki repository directory' do
before do