summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/parser/functions/get_module_path_spec.rb
diff options
context:
space:
mode:
authorChris Price <chris@puppetlabs.com>2012-06-26 17:44:39 -0700
committerChris Price <chris@puppetlabs.com>2012-06-26 17:44:39 -0700
commit29f8f89c19b2189aa78ab430e94671669cb4716c (patch)
tree51b8c47d5576217b4bc8bf45510f38790b43b806 /spec/unit/puppet/parser/functions/get_module_path_spec.rb
parente299ac6212b0468426f971b216447ef6bc679149 (diff)
parentd9410f72e416da15eb1660d15ba2b4288ccc0873 (diff)
downloadpuppet-stdlib-29f8f89c19b2189aa78ab430e94671669cb4716c.tar.gz
puppet-stdlib-29f8f89c19b2189aa78ab430e94671669cb4716c.tar.bz2
Merge pull request #73 from branan/use_spechelper_gem
Update for new gem version of puppetlabs_spec_helper
Diffstat (limited to 'spec/unit/puppet/parser/functions/get_module_path_spec.rb')
-rw-r--r--spec/unit/puppet/parser/functions/get_module_path_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/puppet/parser/functions/get_module_path_spec.rb b/spec/unit/puppet/parser/functions/get_module_path_spec.rb
index d8340f4..e304502 100644
--- a/spec/unit/puppet/parser/functions/get_module_path_spec.rb
+++ b/spec/unit/puppet/parser/functions/get_module_path_spec.rb
@@ -3,7 +3,7 @@ require 'puppet'
require 'fileutils'
require 'spec_helper'
describe Puppet::Parser::Functions.function(:get_module_path) do
- include PuppetSpec::Files
+ include PuppetlabsSpec::Files
def get_scope(environment = 'production')
scope = Puppet::Parser::Scope.new
@@ -30,7 +30,7 @@ describe Puppet::Parser::Functions.function(:get_module_path) do
get_scope.function_get_module_path(['foo']).should == foo_path
end
it 'should be able to find module paths from the environment' do
- conf_file = tmpfile('conffile')
+ conf_file = tmpfilename('conffile')
File.open(conf_file, 'w') do |fh|
fh.write("[dansenvironment]\nmodulepath = #{modulepath}")
end