diff options
author | crayfishx <craig@craigdunn.org> | 2012-07-11 12:11:40 -0700 |
---|---|---|
committer | crayfishx <craig@craigdunn.org> | 2012-07-11 12:11:40 -0700 |
commit | 07062af1a236646970906d4a3f98f1646fcca44d (patch) | |
tree | 3fa7d7aef4652079754c55f1ac9c73074a9eba7e | |
parent | a60b40eb9f2e612f913aa14087632eac088f6e50 (diff) | |
download | puppet-tftp-07062af1a236646970906d4a3f98f1646fcca44d.tar.gz puppet-tftp-07062af1a236646970906d4a3f98f1646fcca44d.tar.bz2 |
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.
-rw-r--r-- | spec/defines/tftp_file_spec.rb | 6 | ||||
-rw-r--r-- | spec/fixtures/manifests/site.pp | 0 |
2 files changed, 2 insertions, 4 deletions
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 --- a/spec/fixtures/manifests/site.pp +++ /dev/null |