Commit deb5509f authored by Lin Jen-Shin's avatar Lin Jen-Shin

Admins should be able to assign locked runners as well

parent 2b521183
......@@ -83,6 +83,16 @@ describe "Admin Runners" do
it_behaves_like 'assignable runner'
end
context 'with locked runner' do
before do
runner.update(locked: true)
@project1.runners << runner
visit admin_runner_path(runner)
end
it_behaves_like 'assignable runner'
end
context 'with shared runner' do
before do
@project1.destroy
......
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