diff options
author | James Lopez <james@gitlab.com> | 2018-05-04 15:42:58 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-05-04 16:09:28 +0300 |
commit | bc7ea2d4386f5624676e7a2ffb196de19d52910b (patch) | |
tree | 36a55240112fd3f2ab772e1ab65f8424010e91d1 /spec/models/project_spec.rb | |
parent | 2d23cb1b9fa9fed19ce66998c5b4177ee13ef5f3 (diff) |
Add ci_cd_settings delete_all dependency on project
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r-- | spec/models/project_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 08e42b61910..ce9783db062 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -101,6 +101,14 @@ describe Project do end end + context 'updating cd_cd_settings' do + it 'does not raise an error' do + project = create(:project) + + expect{ project.update(ci_cd_settings: nil) }.not_to raise_exception + end + end + describe '#members & #requesters' do let(:project) { create(:project, :public, :access_requestable) } let(:requester) { create(:user) } |