summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRafael Chicoli <rafaelchicoli@hotmail.com>2016-01-27 22:51:01 +0100
committerRafael Chicoli <rafaelchicoli@hotmail.com>2016-01-27 22:51:01 +0100
commitc45d8e2f43919785134f02ca34c98ca943c82166 (patch)
treee81ff8445b167c62c36e217c857d518a0be6fc98 /spec
parentecc63a0a28c362ddf4797d3be27a1660c1fa0d94 (diff)
fix service start and stop
Diffstat (limited to 'spec')
-rw-r--r--spec/classes/gitlab_ci_multi_runner_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/classes/gitlab_ci_multi_runner_spec.rb b/spec/classes/gitlab_ci_multi_runner_spec.rb
index f23ab90..2092e9f 100644
--- a/spec/classes/gitlab_ci_multi_runner_spec.rb
+++ b/spec/classes/gitlab_ci_multi_runner_spec.rb
@@ -32,6 +32,12 @@ describe 'gitlab_ci_multi_runner', :type => :class do
it { should contain_package('gitlab-ci-multi-runner').with_name('gitlab-ci-multi-runner').with_ensure('present') }
it { should contain_package('apt-transport-https').with_ensure('present') }
+
+ context 'with service_enable set to false' do
+ let(:params) { {'service_enable' => false} }
+ it { should_not contain_service('gitlab-ci-multi-runner') }
+ end
+
end
end
end