summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-06-17 00:53:30 -0500
committerJames Turnbull <james@lovedthanlost.net>2008-06-17 19:40:39 +1000
commit00182ff96f18b54aa659a1909c23ba1aba253cd8 (patch)
treedba43250ac47d6573fa458bef72bb8f7413e5f1f /test
parent463aab8d55cd7d1ba9abd941e82cb2d4483d0e52 (diff)
downloadpuppet-00182ff96f18b54aa659a1909c23ba1aba253cd8.tar.gz
puppet-00182ff96f18b54aa659a1909c23ba1aba253cd8.tar.xz
puppet-00182ff96f18b54aa659a1909c23ba1aba253cd8.zip
Fixed #707 - special '@reboot'-style cron jobs work again.
Diffstat (limited to 'test')
-rwxr-xr-xtest/ral/providers/cron/crontab.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/ral/providers/cron/crontab.rb b/test/ral/providers/cron/crontab.rb
index 900a0478e..d9f460258 100755
--- a/test/ral/providers/cron/crontab.rb
+++ b/test/ral/providers/cron/crontab.rb
@@ -530,8 +530,6 @@ class TestCronParsedProvider < Test::Unit::TestCase
@provider.initvars
str += "\n"
target.write(str)
- assert_equal(str, target.read,
- "Did not write correctly")
assert_nothing_raised("Could not prefetch with %s" % str.inspect) do
@provider.prefetch
end
@@ -551,6 +549,11 @@ class TestCronParsedProvider < Test::Unit::TestCase
end
end
+ # #707
+ def test_write_freebsd_special
+ assert_equal(@provider.to_line(:record_type => :crontab, :ensure => :present, :special => "reboot", :command => "/bin/echo something"), "@reboot /bin/echo something")
+ end
+
def test_prefetch
cron = @type.create :command => "/bin/echo yay", :name => "test", :hour => 4
@@ -626,6 +629,4 @@ class TestCronParsedProvider < Test::Unit::TestCase
assert_equal(v, is[p], "did not parse %s correctly" % p)
end
end
-
end
-