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:36 +0200
committerStig Sandbeck Mathisen <ssm@debian.org>2014-09-07 10:14:36 +0200
commitd4b83be375ac1dead058e091191ee7c7b7c24c8a (patch)
treedc825687392ae3068de5b764be60c53122d9e02a /spec/integration/util/rdoc/parser_spec.rb
parent229cbb976fe0f70f5f30548b83517b415840f9bb (diff)
parent1681684857c6e39d60d87b0b3520d8783977ceff (diff)
downloadpuppet-upstream/3.7.0.tar.gz
Imported Upstream version 3.7.0upstream/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