}
end
- describe 'when deploying file from another module' do
+ describe 'when deploying file' do
let(:params) { {:ensure => 'file',
:mode => '0755' }}
let(:facts) { { :operatingsystem => 'Debian',
:osfamily => 'Debian',
- :caller_module_name => 'acme',
:path => '/usr/local/bin:/usr/bin:/bin', } }
it {
should contain_file('/srv/tftp/sample').with({
'ensure' => 'file',
'mode' => '0755',
- 'source' => 'puppet:///modules/acme/sample'
+ 'source' => 'puppet:///modules/tftp/sample'
})
}
end
:osfamily => 'Debian',
:caller_module_name => 'acme',
:path => '/usr/local/bin:/usr/bin:/bin', } }
-
it {
should include_class('tftp')
should contain_file('/srv/tftp/sample').with({