]> gitweb.fluxo.info Git - puppet-tftp.git/commitdiff
Changed rspec test for calling outside of module
authorcrayfishx <craig@craigdunn.org>
Wed, 11 Jul 2012 19:11:40 +0000 (12:11 -0700)
committercrayfishx <craig@craigdunn.org>
Wed, 11 Jul 2012 19:11:40 +0000 (12:11 -0700)
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
spec/fixtures/manifests/site.pp [deleted file]

index 1ad62d8dfad1415cd80db2324ba026d4182ccaab..e24f0f32dcb0ef972549a123f2f10d5bf00fbc91 100644 (file)
@@ -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 (file)
index e69de29..0000000