diff options
Diffstat (limited to 'spec/integration/application/doc_spec.rb')
-rwxr-xr-x | spec/integration/application/doc_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/integration/application/doc_spec.rb b/spec/integration/application/doc_spec.rb index 77fc38625..040dde72d 100755 --- a/spec/integration/application/doc_spec.rb +++ b/spec/integration/application/doc_spec.rb @@ -35,11 +35,12 @@ describe Puppet::Application::Doc do end puppet = Puppet::Application[:doc] - Puppet[:modulepath] = modules_dir - Puppet[:manifest] = site_file puppet.options[:mode] = :rdoc - expect { puppet.run_command }.to exit_with 0 + env = Puppet::Node::Environment.create(:rdoc, [modules_dir], site_file) + Puppet.override(:current_environment => env) do + expect { puppet.run_command }.to exit_with 0 + end Puppet::FileSystem.exist?('doc').should be_true ensure |