diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-01-13 17:07:15 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-01-13 17:07:15 +0000 |
| commit | 0c1714945692330ca76a6c254303ff4fcd466efb (patch) | |
| tree | a0ec98b6fe19c10fe7572a1bf1cfa6ab65e30f27 /test | |
| parent | df6ff9eea936c030218853c1ad8ac1b7d2666eaf (diff) | |
finalizing cron and host management, hopefully
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@820 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
| -rwxr-xr-x | test/types/cron.rb | 7 | ||||
| -rwxr-xr-x | test/types/host.rb | 1 |
2 files changed, 3 insertions, 5 deletions
diff --git a/test/types/cron.rb b/test/types/cron.rb index 4bb2fd35b..8e5aff230 100755 --- a/test/types/cron.rb +++ b/test/types/cron.rb @@ -8,7 +8,6 @@ end require 'puppettest' require 'puppet' -require 'puppet/type/cron' require 'test/unit' require 'facter' @@ -65,9 +64,9 @@ class TestCron < Test::Unit::TestCase def cronrestore assert_nothing_raised { if @currenttab - @crontype.filetype.write(@me, @currenttab) + @crontype.filetype.new(@me).write(@currenttab) else - @crontype.filetype.remove(@me) + @crontype.filetype.new(@me).remove end } end @@ -235,7 +234,7 @@ class TestCron < Test::Unit::TestCase def test_mkcronwithtab tab = @fakefiletype.new(@me) tab.remove - tab.write(@me, + tab.write( "1 1 1 1 * date > %s/crontesting\n" % tstdir() ) diff --git a/test/types/host.rb b/test/types/host.rb index 4f9d334bf..84ff041a4 100755 --- a/test/types/host.rb +++ b/test/types/host.rb @@ -8,7 +8,6 @@ end require 'puppettest' require 'puppet' -require 'puppet/type/host' require 'test/unit' require 'facter' |
