diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-01-17 12:19:35 -0800 |
---|---|---|
committer | Thom May <thom@chef.io> | 2018-01-31 18:24:45 +0000 |
commit | f85955a818b48b760642e4a0772c9a1a1fcdb6ab (patch) | |
tree | 18f35e45ac660238823a4d1b508a3002bda30981 | |
parent | a485b598ab8c5b736ee86d65314715a6a38be7d0 (diff) | |
download | chef-f85955a818b48b760642e4a0772c9a1a1fcdb6ab.tar.gz |
fix bff tests for tmpdir
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | spec/functional/resource/bff_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/functional/resource/bff_spec.rb b/spec/functional/resource/bff_spec.rb index e7f7540e5a..0b45e097af 100644 --- a/spec/functional/resource/bff_spec.rb +++ b/spec/functional/resource/bff_spec.rb @@ -1,6 +1,6 @@ # # Author:: Prabhu Das (<prabhu.das@clogeny.com>) -# Copyright:: Copyright 2013-2016, Chef Software Inc. +# Copyright:: Copyright 2013-2017, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -62,7 +62,7 @@ describe Chef::Resource::BffPackage, :requires_root, :external => ohai[:platform context "package install action with options" do it "should install a package" do - new_resource.options("-e/tmp/installp.log") + new_resource.options("-e#{Dir.tmpdir}/installp.log") new_resource.run_action(:install) bff_pkg_should_be_installed(new_resource) end @@ -108,7 +108,7 @@ describe Chef::Resource::BffPackage, :requires_root, :external => ohai[:platform end it "should remove an installed package" do - new_resource.options("-e/tmp/installp.log") + new_resource.options("-e#{Dir.tmpdir}/installp.log") new_resource.run_action(:remove) bff_pkg_should_be_removed(new_resource) end |