diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-09-15 05:48:43 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-09-15 05:48:43 +0000 |
| commit | 39aaa9910f8bc5a120f35233d6dda0b06150747b (patch) | |
| tree | 66029bd2f6805d6089c18851b1886a01bd06e385 /test/language | |
| parent | 6c6ff03155101cebbd4ba76ce09cc23adf45f9f7 (diff) | |
fixing some tests
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@667 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/language')
| -rwxr-xr-x | test/language/tc_snippets.rb | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/test/language/tc_snippets.rb b/test/language/tc_snippets.rb index f206cb2fc..a37404844 100755 --- a/test/language/tc_snippets.rb +++ b/test/language/tc_snippets.rb @@ -23,7 +23,7 @@ require 'puppettest' # so really, we want to do things like test that our ast is correct # and test whether we've got things in the right scopes -class TestSnippets < Test::Unit::TestCase +class TestSnippets < TestPuppet $snippetbase = File.join($puppetbase, "examples", "code", "snippets") def file2ast(file) @@ -161,20 +161,6 @@ class TestSnippets < Test::Unit::TestCase } end - def setup - Puppet[:loglevel] = :debug if __FILE__ == $0 - @@tmpfiles = [] - end - - def teardown - @@tmpfiles.flatten.each { |file| - if FileTest.exists?(file) - system("rm -rf %s" % file) - end - } - Puppet::Type.allclear - end - # this is here in case no tests get defined; otherwise we get a warning def test_nothing end @@ -217,7 +203,7 @@ class TestSnippets < Test::Unit::TestCase files = %w{a b c d}.collect { |letter| "/tmp/snippetselect%stest" % letter } - @@tmpfiles << files + @@tmpfiles += files files.each { |file| assert(FileTest.exists?(file)) |
