+ context 'with confs defined on valid osfamily' do
+ let :facts do
+ {
+ :os => { :family => 'Debian', :name => 'Ubuntu', :release => { :major => '12', :full => '12.04.5' }},
+ :osfamily => 'Debian',
+ :lsbdistcodename => 'precise',
+ :lsbdistid => 'Debian',
+ :puppetversion => Puppet.version,
+ }
+ end
+ let(:params) { { :confs => {
+ 'foo' => {
+ 'content' => 'foo',
+ },
+ 'bar' => {
+ 'content' => 'bar',
+ }
+ } } }
+
+ it { is_expected.to contain_apt__conf('foo').with({
+ :content => 'foo',
+ })}
+
+ it { is_expected.to contain_apt__conf('bar').with({
+ :content => 'bar',
+ })}
+ end
+