aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrayfishx <craig@craigdunn.org>2012-07-11 12:11:40 -0700
committercrayfishx <craig@craigdunn.org>2012-07-11 12:11:40 -0700
commit07062af1a236646970906d4a3f98f1646fcca44d (patch)
tree3fa7d7aef4652079754c55f1ac9c73074a9eba7e
parenta60b40eb9f2e612f913aa14087632eac088f6e50 (diff)
downloadpuppet-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.rb6
-rw-r--r--spec/fixtures/manifests/site.pp0
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