summaryrefslogtreecommitdiffstats
path: root/test/parser
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-10-03 23:14:53 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-10-03 23:14:53 +0000
commite563189acd0755a8d32ab956e758405fd3a6f40a (patch)
treef23ce377f66ad60129819d7d2d3e1412be51cbb7 /test/parser
parent9d3aaad7085164e1cc3d665269f9c99c17a7c45a (diff)
downloadpuppet-e563189acd0755a8d32ab956e758405fd3a6f40a.tar.gz
puppet-e563189acd0755a8d32ab956e758405fd3a6f40a.tar.xz
puppet-e563189acd0755a8d32ab956e758405fd3a6f40a.zip
switching test classes back to modules -- making them classes causes too many empty tests to run every time
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@714 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/parser')
-rw-r--r--test/parser/tc_lexer.rb3
-rw-r--r--test/parser/tc_parser.rb3
2 files changed, 4 insertions, 2 deletions
diff --git a/test/parser/tc_lexer.rb b/test/parser/tc_lexer.rb
index 4473ce492..d37004ef3 100644
--- a/test/parser/tc_lexer.rb
+++ b/test/parser/tc_lexer.rb
@@ -16,7 +16,8 @@ require 'puppettest.rb'
#\}
#} => [[:NAME, "service"], [:LPAREN, "("], [:DQUOTE, "\""], [:NAME, "telnet"], [:DQUOTE, "\""], [:RPAREN, ")"], [:EQUALS, "="], [:lbrace, "{"], [:NAME, "port"], [:FARROW, "=>"], [:DQUOTE, "\""], [:NAME, "23"], [:DQUOTE, "\""], [:COMMA, ","], [:NAME, "protocol"], [:FARROW, "=>"], [:DQUOTE, "\""], [:NAME, "tcp"], [:DQUOTE, "\""], [:COMMA, ","], [:NAME, "name"], [:FARROW, "=>"], [:DQUOTE, "\""], [:NAME, "telnet"], [:DQUOTE, "\""], [:COMMA, ","], [:RBRACE, "}"]]
-class TestLexer < TestPuppet
+class TestLexer < Test::Unit::TestCase
+ include TestPuppet
def setup
super
@lexer = Puppet::Parser::Lexer.new()
diff --git a/test/parser/tc_parser.rb b/test/parser/tc_parser.rb
index 4e3d83a63..16ac0048b 100644
--- a/test/parser/tc_parser.rb
+++ b/test/parser/tc_parser.rb
@@ -9,7 +9,8 @@ require 'puppet/parser/parser'
require 'test/unit'
require 'puppettest'
-class TestParser < TestPuppet
+class TestParser < Test::Unit::TestCase
+ include TestPuppet
def setup
super
Puppet[:parseonly] = true