diff options
Diffstat (limited to 'spec/lib/gitlab/ci/yaml_processor_spec.rb')
-rw-r--r-- | spec/lib/gitlab/ci/yaml_processor_spec.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/spec/lib/gitlab/ci/yaml_processor_spec.rb b/spec/lib/gitlab/ci/yaml_processor_spec.rb index 94ab4819361..e8e44f884cf 100644 --- a/spec/lib/gitlab/ci/yaml_processor_spec.rb +++ b/spec/lib/gitlab/ci/yaml_processor_spec.rb @@ -485,10 +485,6 @@ module Gitlab end describe '#warnings' do - before do - stub_feature_flags(ci_raise_job_rules_without_workflow_rules_warning: true) - end - context 'when a warning is raised in a given entry' do let(:config) do <<-EOYML @@ -602,27 +598,6 @@ module Gitlab it_behaves_like 'has warnings and expected error', /build job: need test is not defined in prior stages/ end end - - context 'when feature flag is disabled' do - before do - stub_feature_flags(ci_raise_job_rules_without_workflow_rules_warning: false) - end - - context 'job rules used without workflow rules' do - let(:config) do - <<-EOYML - rspec: - script: rspec - rules: - - when: always - EOYML - end - - it 'does not raise the warning' do - expect(subject.warnings).to be_empty - end - end - end end describe 'only / except policies validations' do |