diff options
| author | Josh Cooper <josh@puppetlabs.com> | 2011-08-19 14:51:19 -0700 |
|---|---|---|
| committer | Josh Cooper <josh@puppetlabs.com> | 2011-08-19 14:51:19 -0700 |
| commit | 299932691c7a67c93275e978c52132ff99cae4f5 (patch) | |
| tree | 7e56bee81729a1b92fa84854828b16d171f5a125 /spec | |
| parent | 384302af6dec8c51442f2f29a4c7c555379cd297 (diff) | |
| parent | 66fb5319b419c4145d07b4a217efc13d35e3a5a4 (diff) | |
| download | puppet-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')
| -rwxr-xr-x | spec/unit/application/secret_agent_spec.rb | 4 | ||||
| -rwxr-xr-x | spec/unit/face/secret_agent_spec.rb | 4 | ||||
| -rwxr-xr-x | spec/unit/node/environment_spec.rb | 2 |
3 files changed, 7 insertions, 3 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" diff --git a/spec/unit/face/secret_agent_spec.rb b/spec/unit/face/secret_agent_spec.rb index a5ec01f27..2530d144d 100755 --- a/spec/unit/face/secret_agent_spec.rb +++ b/spec/unit/face/secret_agent_spec.rb @@ -5,10 +5,12 @@ require 'puppet/indirector/catalog/rest' require 'tempfile' describe Puppet::Face[:secret_agent, '0.0.1'] do + include PuppetSpec::Files + describe "#synchronize" do it "should retrieve and apply a catalog and return a report" do pending "This test doesn't work, but the code actually does - tested by LAK" - dirname = Dir.mktmpdir("puppetdir") + dirname = tmpdir("puppetdir") Puppet[:vardir] = dirname Puppet[:confdir] = dirname @catalog = Puppet::Resource::Catalog.new diff --git a/spec/unit/node/environment_spec.rb b/spec/unit/node/environment_spec.rb index 79c21248d..78d383440 100755 --- a/spec/unit/node/environment_spec.rb +++ b/spec/unit/node/environment_spec.rb @@ -104,7 +104,7 @@ describe Puppet::Node::Environment do end it "should validate the modulepath directories" do - real_file = Dir.mktmpdir + real_file = tmpdir('moduledir') path = %W[/one /two #{real_file}].join(File::PATH_SEPARATOR) Puppet[:modulepath] = path |
