summaryrefslogtreecommitdiff
path: root/spec/services/ci/create_pipeline_service
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-03 12:09:07 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-03 12:09:07 +0000
commitc089cf73c2f1835dc68fd6107d6cbd10fc17f365 (patch)
treeb91f11ed13f00c84ee69e03150d00426279911ef /spec/services/ci/create_pipeline_service
parentf14507e586a7f75f0fb71a1d8468b7361be860d4 (diff)
downloadgitlab-ce-c089cf73c2f1835dc68fd6107d6cbd10fc17f365.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/ci/create_pipeline_service')
-rw-r--r--spec/services/ci/create_pipeline_service/rules_spec.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/spec/services/ci/create_pipeline_service/rules_spec.rb b/spec/services/ci/create_pipeline_service/rules_spec.rb
index 0a2c5724ce4..713d230731b 100644
--- a/spec/services/ci/create_pipeline_service/rules_spec.rb
+++ b/spec/services/ci/create_pipeline_service/rules_spec.rb
@@ -100,17 +100,6 @@ describe Ci::CreatePipelineService do
stub_ci_pipeline_yaml_file(config)
end
- shared_examples 'workflow:rules feature disabled' do
- before do
- stub_feature_flags(workflow_rules: false)
- end
-
- it 'presents a message that rules are disabled' do
- expect(pipeline.errors[:base]).to include('Workflow rules are disabled')
- expect(pipeline).to be_persisted
- end
- end
-
context 'with a single regex-matching if: clause' do
let(:config) do
<<-EOY
@@ -241,8 +230,6 @@ describe Ci::CreatePipelineService do
expect(pipeline.errors[:base]).to include('No stages / jobs for this pipeline.')
expect(pipeline).not_to be_persisted
end
-
- it_behaves_like 'workflow:rules feature disabled'
end
context 'where workflow passes and the job passes' do
@@ -252,8 +239,6 @@ describe Ci::CreatePipelineService do
expect(pipeline).to be_pending
expect(pipeline).to be_persisted
end
-
- it_behaves_like 'workflow:rules feature disabled'
end
context 'where workflow fails and the job fails' do
@@ -263,8 +248,6 @@ describe Ci::CreatePipelineService do
expect(pipeline.errors[:base]).to include('Pipeline filtered out by workflow rules.')
expect(pipeline).not_to be_persisted
end
-
- it_behaves_like 'workflow:rules feature disabled'
end
context 'where workflow fails and the job passes' do
@@ -274,8 +257,6 @@ describe Ci::CreatePipelineService do
expect(pipeline.errors[:base]).to include('Pipeline filtered out by workflow rules.')
expect(pipeline).not_to be_persisted
end
-
- it_behaves_like 'workflow:rules feature disabled'
end
end
end