summaryrefslogtreecommitdiff
path: root/spec/acceptance/class_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/acceptance/class_spec.rb')
-rw-r--r--spec/acceptance/class_spec.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/acceptance/class_spec.rb b/spec/acceptance/class_spec.rb
new file mode 100644
index 0000000..67434c2
--- /dev/null
+++ b/spec/acceptance/class_spec.rb
@@ -0,0 +1,26 @@
+require 'spec_helper_acceptance'
+
+describe 'gitlab_ci_multi_runner class' do
+
+ context 'default parameters' do
+ # Using puppet_apply as a helper
+ it 'should work with no errors' do
+ pp = <<-EOS
+ class { 'gitlab_ci_multi_runner': }
+ EOS
+
+ # Run it twice and test for idempotency
+ expect(apply_manifest(pp).exit_code).to_not eq(1)
+ expect(apply_manifest(pp).exit_code).to eq(0)
+ end
+
+ describe package('gitlab_ci_multi_runner') do
+ it { should be_installed }
+ end
+
+ describe service('gitlab_ci_multi_runner') do
+ it { should be_enabled }
+ it { should be_running }
+ end
+ end
+end