summaryrefslogtreecommitdiffstats
path: root/test/language/snippets.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/language/snippets.rb')
-rwxr-xr-xtest/language/snippets.rb11
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|