diff --git a/lib/puppetlabs_spec_helper/rake_tasks.rb b/lib/puppetlabs_spec_helper/rake_tasks.rb index 96a9fee3..79fddac4 100644 --- a/lib/puppetlabs_spec_helper/rake_tasks.rb +++ b/lib/puppetlabs_spec_helper/rake_tasks.rb @@ -95,7 +95,7 @@ def vagrant_ssh(set, node = nil) end def auto_symlink - { Dir.pwd.split('/').last.split('-').last => '#{source_dir}' } + { File.basename(Dir.pwd).split('-').last => '#{source_dir}' } end def fixtures(category)