diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-06-28 15:15:50 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-06-28 15:15:50 +0300 |
commit | deb5509f7bc3eec8fa47939144a52cda7d408625 (patch) | |
tree | 9a558fdab1c562e0cff3fae4ce94a55c70075436 /spec | |
parent | 2b5211833342fb31201030d84a9e0caf2c8cceb8 (diff) |
Admins should be able to assign locked runners as well
Diffstat (limited to 'spec')
-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 |