diff options
| author | Nick Lewis <nick@puppetlabs.com> | 2011-07-21 21:25:21 -0700 |
|---|---|---|
| committer | Nick Lewis <nick@puppetlabs.com> | 2011-07-21 21:27:42 -0700 |
| commit | 61df3f7c39d74b82e37f48c3519293406036e1e9 (patch) | |
| tree | 26fc31552c7eb50173067b5957e5a8ba2c41465d /spec/unit/node | |
| parent | c5d70ed11f8f964523ca049d6c3d504de3840c1a (diff) | |
| download | puppet-61df3f7c39d74b82e37f48c3519293406036e1e9.tar.gz puppet-61df3f7c39d74b82e37f48c3519293406036e1e9.tar.xz puppet-61df3f7c39d74b82e37f48c3519293406036e1e9.zip | |
Don't use non-1.8.5-compatible methods 'Object#tap' and 'Dir.mktmpdir'
These methods aren't available until Ruby 1.8.6 (Dir.mktmpdir) and Ruby 1.8.7
(Object#tap).
Reviewed-By: Jacob Helwig <jacob@puppetlabs.com>
Diffstat (limited to 'spec/unit/node')
| -rwxr-xr-x | spec/unit/node/environment_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/node/environment_spec.rb b/spec/unit/node/environment_spec.rb index f3772749a..eb20aa7ef 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 |
