Skip to content

Commit

Permalink
Adds acceptance test for cirunner class
Browse files Browse the repository at this point in the history
  • Loading branch information
petems committed Feb 18, 2016
1 parent 48ff2f6 commit b6dbe16
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions spec/acceptance/gitlabci_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
require 'spec_helper_acceptance'

describe 'gitlab:;cirunner class' do

context 'default parameters' do
# Using puppet_apply as a helper
it 'should work idempotently with no errors' do
pp = <<-EOS
class { 'gitlab::cirunner': }
EOS

# Run it twice and test for idempotency
apply_manifest(pp, :catch_failures => true)
apply_manifest(pp, :catch_changes => true)
end

describe package('gitlab-ci-multi-runner') do
it { is_expected.to be_installed }
end
end
end

0 comments on commit b6dbe16

Please sign in to comment.