This commit is contained in:
Shinya Maeda 2017-08-29 17:31:59 +09:00
parent 13b9b5f11a
commit 2170eec662
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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) }