diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-06-28 20:15:50 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-06-28 20:15:50 +0800 |
commit | deb5509f7bc3eec8fa47939144a52cda7d408625 (patch) | |
tree | 9a558fdab1c562e0cff3fae4ce94a55c70075436 | |
parent | 2b5211833342fb31201030d84a9e0caf2c8cceb8 (diff) | |
download | gitlab-ce-deb5509f7bc3eec8fa47939144a52cda7d408625.tar.gz |
Admins should be able to assign locked runners as well
-rw-r--r-- | spec/features/admin/admin_runners_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/admin/admin_runners_spec.rb b/spec/features/admin/admin_runners_spec.rb index 05b3b700b8b..2f82fafc13a 100644 --- a/spec/features/admin/admin_runners_spec.rb +++ b/spec/features/admin/admin_runners_spec.rb @@ -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 |