diff options
-rw-r--r-- | spec/models/ci/runner_spec.rb | 4 | ||||
-rw-r--r-- | spec/services/ci/register_job_service_spec.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/ci/runner_spec.rb b/spec/models/ci/runner_spec.rb index 54f68542d41..8c157d4369b 100644 --- a/spec/models/ci/runner_spec.rb +++ b/spec/models/ci/runner_spec.rb @@ -482,9 +482,9 @@ describe Ci::Runner do end describe '.access_level' do - context 'when access_level of a runner is protected' do + context 'when access_level of a runner is ref_protected' do before do - create(:ci_runner, :protected) + create(:ci_runner, :ref_protected) end it 'a protected runner exists' do diff --git a/spec/services/ci/register_job_service_spec.rb b/spec/services/ci/register_job_service_spec.rb index eb3e7e749ef..e9bcb41c5f5 100644 --- a/spec/services/ci/register_job_service_spec.rb +++ b/spec/services/ci/register_job_service_spec.rb @@ -233,8 +233,8 @@ module Ci end end - context 'when a runner is protected' do - let!(:specific_runner) { create(:ci_runner, :protected, :specific) } + context 'when a runner is ref_protected' do + let!(:specific_runner) { create(:ci_runner, :ref_protected, :specific) } context 'when a job is protected' do let!(:pending_build) { create(:ci_build, :protected, pipeline: pipeline) } |