diff options
Diffstat (limited to 'test/language/ast.rb')
-rwxr-xr-x | test/language/ast.rb | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/test/language/ast.rb b/test/language/ast.rb index 3fb6f5c0d..ffec7e66a 100755 --- a/test/language/ast.rb +++ b/test/language/ast.rb @@ -16,26 +16,7 @@ class TestAST < Test::Unit::TestCase include PuppetTest::RailsTesting include PuppetTest::ParserTesting include PuppetTest::ResourceTesting - - # A fake class that we can use for testing evaluation. - class FakeAST - attr_writer :evaluate - - def evaluate(*args) - return @evaluate - end - - def initialize(val = nil) - if val - @evaluate = val - end - end - - def safeevaluate(*args) - evaluate() - end - end - + if defined? ActiveRecord # Verify that our collection stuff works. def test_collection |