diff options
author | Brice Figureau <brice-puppet@daysofwonder.com> | 2008-10-28 14:17:12 +0100 |
---|---|---|
committer | Brice Figureau <brice-puppet@daysofwonder.com> | 2008-10-29 10:30:38 +0100 |
commit | 2d37f09aa093b10cb64b9b649f0066217c53d48f (patch) | |
tree | 77a08abb35ab5bdb669e4829f71837a4922601a3 /test/language/snippets.rb | |
parent | 9f30306d2c768bad3327ecb7748669afb10cd4aa (diff) | |
download | puppet-2d37f09aa093b10cb64b9b649f0066217c53d48f.tar.gz puppet-2d37f09aa093b10cb64b9b649f0066217c53d48f.tar.xz puppet-2d37f09aa093b10cb64b9b649f0066217c53d48f.zip |
Fix #1402 - Allow multiline comments
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'test/language/snippets.rb')
-rwxr-xr-x | test/language/snippets.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/language/snippets.rb b/test/language/snippets.rb index 1003ded9f..c4318ee16 100755 --- a/test/language/snippets.rb +++ b/test/language/snippets.rb @@ -30,6 +30,13 @@ class TestSnippets < Test::Unit::TestCase end end + def assert_not_file(path, msg = nil) + if file = @file[path] + msg ||= "File %s exists!" % path + raise msg + end + end + def assert_mode_equal(mode, path) unless file = @file[path] raise "Could not find file %s" % path @@ -464,6 +471,10 @@ class TestSnippets < Test::Unit::TestCase assert_file("/tmp/multipleclassone", "one") assert_file("/tmp/multipleclasstwo", "two") end + + def snippet_multilinecomments + assert_not_file("/tmp/multilinecomments","Did create a commented resource"); + end # Iterate across each of the snippets and create a test. Dir.entries(snippetdir).sort.each { |file| |