summaryrefslogtreecommitdiffstats
path: root/test/util
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-10-09 12:02:37 -0500
committerLuke Kanies <luke@madstop.com>2007-10-09 12:02:37 -0500
commit9db7aae242537b2bd39b8f4ae5723514087e7034 (patch)
treed5c663eb59b79fbfe151ed93e635d50726976863 /test/util
parent32753e11d9cd731760ec8ba3c4f1ad2e3402535e (diff)
parentd4871bf5fbeff53670ea6c82b2ee3f3c3ea01c83 (diff)
downloadpuppet-9db7aae242537b2bd39b8f4ae5723514087e7034.tar.gz
puppet-9db7aae242537b2bd39b8f4ae5723514087e7034.tar.xz
puppet-9db7aae242537b2bd39b8f4ae5723514087e7034.zip
Merge branch 'master' of git://michaelobrien.info/puppet into michael
Diffstat (limited to 'test/util')
-rwxr-xr-xtest/util/fileparsing.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/util/fileparsing.rb b/test/util/fileparsing.rb
index 127dbe1d1..e1a5d39b5 100755
--- a/test/util/fileparsing.rb
+++ b/test/util/fileparsing.rb
@@ -456,12 +456,21 @@ billy three four\n"
:separator => " " # A single space
end
- ["a b c d", "a b * d", "a b * *", "a b c *"].each do |line|
+ { "a b c d" => [],
+ "a b * d" => [:three],
+ "a b * *" => [:three, :four],
+ "a b c *" => [:four]
+ }.each do |line, absentees|
record = nil
assert_nothing_raised do
record = @parser.parse_line(line)
end
+ # Absent field is :absent, not "*" inside the record
+ absentees.each do |absentee|
+ assert_equal(:absent, record[absentee])
+ end
+
# Now regenerate the line
newline = nil
assert_nothing_raised do