summaryrefslogtreecommitdiff
path: root/spec/services/ci
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-11-05 16:22:37 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2015-11-08 23:55:47 +0100
commit4fda9ef8a522352886fad08524b4ad4054a7eb60 (patch)
treefa2346f9e73c4fa49b1fbf9ccf24e5fa63f3219d /spec/services/ci
parentb18671a1b2c565a87663544441000063f6b83c8e (diff)
downloadgitlab-ce-shared_runners.tar.gz
Diffstat (limited to 'spec/services/ci')
-rw-r--r--spec/services/ci/register_build_service_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/services/ci/register_build_service_spec.rb b/spec/services/ci/register_build_service_spec.rb
index 781764627ac..b370dfbe113 100644
--- a/spec/services/ci/register_build_service_spec.rb
+++ b/spec/services/ci/register_build_service_spec.rb
@@ -70,6 +70,10 @@ module Ci
end
context 'disallow shared runners' do
+ before do
+ gl_project.gitlab_ci_project.update(shared_runners_enabled: false)
+ end
+
context 'shared runner' do
let(:build) { service.execute(shared_runner) }