Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-02-27 12:28:17 +0300
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-03-13 15:33:35 +0300
commit6e3bb1e3888fa7db1afd4e9ff2239106c49d0e38 (patch)
tree10ef466ba1fd3c22fd67116eda14064965d2de34 /spec/models
parent2de0bcf8007d9e92c9c691c1ec7664e5331300b3 (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.rb9
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