diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-17 02:50:48 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-17 02:50:48 +0000 |
commit | 86c63ce2d9e93786cb27f9056b90f6887cbc8826 (patch) | |
tree | 2457fcfa3098bc1f6da35a6dff7ce1fcc2f52c90 /test/util | |
parent | ba23a5ac276e59fdda8186750c6d0fd2cfecdeac (diff) | |
download | puppet-86c63ce2d9e93786cb27f9056b90f6887cbc8826.tar.gz puppet-86c63ce2d9e93786cb27f9056b90f6887cbc8826.tar.xz puppet-86c63ce2d9e93786cb27f9056b90f6887cbc8826.zip |
Fixing cron support (I hope). It now uses providers, and seems to work, at least on my os x box.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2284 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/util')
-rwxr-xr-x | test/util/fileparsing.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/util/fileparsing.rb b/test/util/fileparsing.rb index 12343c38b..c81c9e006 100755 --- a/test/util/fileparsing.rb +++ b/test/util/fileparsing.rb @@ -564,7 +564,8 @@ billy three four\n" assert_nothing_raised("Could not set hooks") do record = @parser.record_line :yay, :fields => %w{one two}, :post_parse => proc { |hash| hash[:posted] = true }, - :pre_gen => proc { |hash| hash[:one] = hash[:one].upcase } + :pre_gen => proc { |hash| hash[:one] = hash[:one].upcase }, + :to_line => proc { |hash| "# Line\n" + join(hash) } end assert(record.respond_to?(:post_parse), "did not create method for post-hook") @@ -582,7 +583,7 @@ billy three four\n" assert_nothing_raised("Could not generate line with hooks") do result = @parser.to_line(result) end - assert_equal("ONE two", result, "did not call pre-gen hook") + assert_equal("# Line\nONE two", result, "did not call pre-gen hook") assert_equal("one", old_result[:one], "passed original hash to pre hook") end end |