summaryrefslogtreecommitdiffstats
path: root/spec/unit/application
diff options
context:
space:
mode:
authorJosh Cooper <josh@puppetlabs.com>2011-08-19 14:51:19 -0700
committerJosh Cooper <josh@puppetlabs.com>2011-08-19 14:51:19 -0700
commit299932691c7a67c93275e978c52132ff99cae4f5 (patch)
tree7e56bee81729a1b92fa84854828b16d171f5a125 /spec/unit/application
parent384302af6dec8c51442f2f29a4c7c555379cd297 (diff)
parent66fb5319b419c4145d07b4a217efc13d35e3a5a4 (diff)
downloadpuppet-299932691c7a67c93275e978c52132ff99cae4f5.tar.gz
puppet-299932691c7a67c93275e978c52132ff99cae4f5.tar.xz
puppet-299932691c7a67c93275e978c52132ff99cae4f5.zip
Merge remote-tracking branch 'jhelwig/add-missing-commit-for-ruby-1.8.5-compatibility-to-2.7.x' into 2.7.x
* jhelwig/add-missing-commit-for-ruby-1.8.5-compatibility-to-2.7.x: Don't use non-1.8.5-compatible methods 'Object#tap' and 'Dir.mktmpdir'
Diffstat (limited to 'spec/unit/application')
-rwxr-xr-xspec/unit/application/secret_agent_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/application/secret_agent_spec.rb b/spec/unit/application/secret_agent_spec.rb
index eba936447..d3923406d 100755
--- a/spec/unit/application/secret_agent_spec.rb
+++ b/spec/unit/application/secret_agent_spec.rb
@@ -6,10 +6,12 @@ require 'puppet/indirector/report/rest'
require 'tempfile'
describe "Puppet::Application::Secret_agent" do
+ include PuppetSpec::Files
+
it "should retrieve and apply a catalog and submit a report" do
pending "REVISIT: 2.7 changes broke this, and we want the merge published"
- dirname = Dir.mktmpdir("puppetdir")
+ dirname = tmpdir("puppetdir")
Puppet[:vardir] = dirname
Puppet[:confdir] = dirname
Puppet[:certname] = "foo"