diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-01 12:09:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-01 12:09:30 +0300 |
commit | a66a37ceff963198142f0deaecaa4ac2719ef8c7 (patch) | |
tree | 16c3ea23090a53572cfcb1475fca339723a86637 /spec/services/ci/register_job_service_spec.rb | |
parent | 831defac9169ad4c411f54eae54d8b051ff6d691 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/ci/register_job_service_spec.rb')
-rw-r--r-- | spec/services/ci/register_job_service_spec.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/spec/services/ci/register_job_service_spec.rb b/spec/services/ci/register_job_service_spec.rb index 5727f3df857..de4db4f144c 100644 --- a/spec/services/ci/register_job_service_spec.rb +++ b/spec/services/ci/register_job_service_spec.rb @@ -356,13 +356,8 @@ module Ci end context 'runner feature set is verified' do - let!(:pending_job) { create(:ci_build, :pending, pipeline: pipeline) } - - before do - expect_any_instance_of(Ci::Build).to receive(:runner_required_feature_names) do - [:runner_required_feature] - end - end + let(:options) { { artifacts: { reports: { junit: "junit.xml" } } } } + let!(:pending_job) { create(:ci_build, :pending, pipeline: pipeline, options: options) } subject { execute(specific_runner, params) } @@ -378,7 +373,7 @@ module Ci context 'when feature is supported by runner' do let(:params) do - { info: { features: { runner_required_feature: true } } } + { info: { features: { upload_multiple_artifacts: true } } } end it 'does pick job' do |