summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/features/admin/admin_runners_spec.rb10
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