From c45d8e2f43919785134f02ca34c98ca943c82166 Mon Sep 17 00:00:00 2001 From: Rafael Chicoli Date: Wed, 27 Jan 2016 22:51:01 +0100 Subject: fix service start and stop --- spec/classes/gitlab_ci_multi_runner_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec') 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 -- cgit v1.2.3