Add an assertion.

Mostly, this implies adding all of the boilerplate needed to start using
rspec-puppet with fixtures and whatnot.
This commit is contained in:
Nate Riffe
2014-12-15 14:05:53 -06:00
parent bf7f5f93fc
commit 636e77356a
8 changed files with 82 additions and 11 deletions
+17
View File
@@ -0,0 +1,17 @@
# ex: syntax=ruby ts=2 sw=2 si et
require 'spec_helper'
describe 'bind' do
let(:facts) { { :concat_basedir => '/wtf' } }
context 'on Debian-derived systems' do
let(:facts) { super().merge({ :osfamily => 'Debian' }) }
it { should contain_package('bind').with({
'ensure' => 'latest',
'name' => 'bind9'
})
}
end
end
+1 -6
View File
@@ -1,6 +1 @@
require 'rspec-puppet'
RSpec.configure do |c|
c.module_path = File.expand(File.join(__FILE__, '..', 'fixtures', 'modules'))
c.manifest_dir = File.expand(File.join(__FILE__, '..', 'fixtures', 'manifests'))
end
require 'puppetlabs_spec_helper/module_spec_helper'