Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-06-28 15:15:50 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-06-28 15:15:50 +0300
commitdeb5509f7bc3eec8fa47939144a52cda7d408625 (patch)
tree9a558fdab1c562e0cff3fae4ce94a55c70075436 /spec/features/admin/admin_runners_spec.rb
parent2b5211833342fb31201030d84a9e0caf2c8cceb8 (diff)
Admins should be able to assign locked runners as well
Diffstat (limited to 'spec/features/admin/admin_runners_spec.rb')
-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