summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2010-11-22 14:56:49 -0800
committerMatt Robinson <matt@puppetlabs.com>2010-11-22 14:56:49 -0800
commit4a2bbbcf197760ce2eb3c257742293794d6fb571 (patch)
tree4b0da9bf07dfd0e0a6be747019af58275b57b6b8 /lib/puppet/parser
parenta95783f6d6044789e6a0408976126757d4e9f084 (diff)
downloadpuppet-4a2bbbcf197760ce2eb3c257742293794d6fb571.tar.gz
puppet-4a2bbbcf197760ce2eb3c257742293794d6fb571.tar.xz
puppet-4a2bbbcf197760ce2eb3c257742293794d6fb571.zip
maint: Fix tests that don't run on their own
From the spec directory I found all the specs that fail when run on their own. for TEST in `find . -name "*.rb" -type f`; do spec $TEST > /dev/null 2>&1 if [[ $? != 0 ]]; then echo $TEST fi done All of them were cases of missing requires. Paired-with: Nick Lewis <nick@puppetlabs.com>
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r--lib/puppet/parser/templatewrapper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/parser/templatewrapper.rb b/lib/puppet/parser/templatewrapper.rb
index 73a4ad8aa..6864aa1a9 100644
--- a/lib/puppet/parser/templatewrapper.rb
+++ b/lib/puppet/parser/templatewrapper.rb
@@ -1,6 +1,7 @@
# A simple wrapper for templates, so they don't have full access to
# the scope objects.
require 'puppet/parser/files'
+require 'erb'
class Puppet::Parser::TemplateWrapper
attr_writer :scope