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:
@@ -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
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user