Admins should be able to assign locked runners as well

This commit is contained in:
Lin Jen-Shin 2016-06-28 20:15:50 +08:00
parent 2b52118333
commit deb5509f7b

View file

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