Commit 2170eec6 authored by Shinya Maeda's avatar Shinya Maeda

Fix spec

parent 13b9b5f1
...@@ -482,9 +482,9 @@ describe Ci::Runner do ...@@ -482,9 +482,9 @@ describe Ci::Runner do
end end
describe '.access_level' do 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 before do
create(:ci_runner, :protected) create(:ci_runner, :ref_protected)
end end
it 'a protected runner exists' do it 'a protected runner exists' do
......
...@@ -233,8 +233,8 @@ module Ci ...@@ -233,8 +233,8 @@ module Ci
end end
end end
context 'when a runner is protected' do context 'when a runner is ref_protected' do
let!(:specific_runner) { create(:ci_runner, :protected, :specific) } let!(:specific_runner) { create(:ci_runner, :ref_protected, :specific) }
context 'when a job is protected' do context 'when a job is protected' do
let!(:pending_build) { create(:ci_build, :protected, pipeline: pipeline) } let!(:pending_build) { create(:ci_build, :protected, pipeline: pipeline) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment