summaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/puppettest/parsertesting.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lib/puppettest/parsertesting.rb b/test/lib/puppettest/parsertesting.rb
index 8186bf304..dee38eb3a 100644
--- a/test/lib/puppettest/parsertesting.rb
+++ b/test/lib/puppettest/parsertesting.rb
@@ -33,6 +33,11 @@ module PuppetTest::ParserTesting
def safeevaluate(*args)
evaluate()
end
+
+ def evaluate_match(othervalue, scope, options={})
+ value = evaluate()
+ othervalue == value
+ end
end
def astarray(*args)