summaryrefslogtreecommitdiff
path: root/spec/integration/util/rdoc/parser_spec.rb
diff options
context:
space:
mode:
authorStig Sandbeck Mathisen <ssm@debian.org>2014-09-07 10:14:41 +0200
committerStig Sandbeck Mathisen <ssm@debian.org>2014-09-07 10:14:44 +0200
commit2261d8ebf17203fdd406c6f405c136ddf7c68833 (patch)
treebc3118b690b73bbe3905933875017547946804c4 /spec/integration/util/rdoc/parser_spec.rb
parent1698de7ef25fb523dfff7f24192e573bd6a2af6c (diff)
parentd4b83be375ac1dead058e091191ee7c7b7c24c8a (diff)
downloadpuppet-2261d8ebf17203fdd406c6f405c136ddf7c68833.tar.gz
Merge tag 'upstream/3.7.0'
Upstream version 3.7.0
Diffstat (limited to 'spec/integration/util/rdoc/parser_spec.rb')
-rwxr-xr-xspec/integration/util/rdoc/parser_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/integration/util/rdoc/parser_spec.rb b/spec/integration/util/rdoc/parser_spec.rb
index d3bbef45c..2fdaf8019 100755
--- a/spec/integration/util/rdoc/parser_spec.rb
+++ b/spec/integration/util/rdoc/parser_spec.rb
@@ -127,6 +127,13 @@ end
end.should_not(be_empty, "Could not match #{content_patterns} in any of the files found in #{glob}")
end
+ around(:each) do |example|
+ env = Puppet::Node::Environment.create(:doc_test_env, [modules_dir], manifests_dir)
+ Puppet.override({:environments => Puppet::Environments::Static.new(env), :current_environment => env}) do
+ example.run
+ end
+ end
+
before :each do
prepare_manifests_and_modules
Puppet.settings[:document_all] = document_all