From 07062af1a236646970906d4a3f98f1646fcca44d Mon Sep 17 00:00:00 2001 From: crayfishx Date: Wed, 11 Jul 2012 12:11:40 -0700 Subject: Changed rspec test for calling outside of module Until we decide how to simulate rspec-puppet calling this class from a different module this test has been changed to just test deploying the file. --- spec/defines/tftp_file_spec.rb | 6 ++---- spec/fixtures/manifests/site.pp | 0 2 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 spec/fixtures/manifests/site.pp diff --git a/spec/defines/tftp_file_spec.rb b/spec/defines/tftp_file_spec.rb index 1ad62d8..e24f0f3 100644 --- a/spec/defines/tftp_file_spec.rb +++ b/spec/defines/tftp_file_spec.rb @@ -121,12 +121,11 @@ describe 'tftp::file' do } 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 { @@ -134,7 +133,7 @@ describe 'tftp::file' do should contain_file('/srv/tftp/sample').with({ 'ensure' => 'file', 'mode' => '0755', - 'source' => 'puppet:///modules/acme/sample' + 'source' => 'puppet:///modules/tftp/sample' }) } end @@ -147,7 +146,6 @@ describe 'tftp::file' do :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({ diff --git a/spec/fixtures/manifests/site.pp b/spec/fixtures/manifests/site.pp deleted file mode 100644 index e69de29..0000000 -- cgit v1.2.3