diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-02-27 12:28:17 +0300 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-03-13 15:33:35 +0300 |
commit | 6e3bb1e3888fa7db1afd4e9ff2239106c49d0e38 (patch) | |
tree | 10ef466ba1fd3c22fd67116eda14064965d2de34 /spec/models | |
parent | 2de0bcf8007d9e92c9c691c1ec7664e5331300b3 (diff) |
Remove NUMBER_OF_PERMITTED_BOARDS from Project
We already check max boards in the create service. This is not used.
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/project_spec.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 5c09faafd83..328133e5c3c 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -136,15 +136,6 @@ describe Project do end end - describe '#boards' do - it 'raises an error when attempting to add more than one board to the project' do - subject.boards.build - - expect { subject.boards.build }.to raise_error(Project::BoardLimitExceeded, 'Number of permitted boards exceeded') - expect(subject.boards.size).to eq 1 - end - end - describe 'ci_pipelines association' do it 'returns only pipelines from ci_sources' do expect(Ci::Pipeline).to receive(:ci_sources).and_call_original |