Fix spec
This commit is contained in:
parent
13b9b5f11a
commit
2170eec662
|
@ -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
|
||||
|
|
|
@ -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) }
|
||||
|
|
Loading…
Reference in New Issue