From 098f8d8fc6daef68db418ea81f08d3ee35dbdf57 Mon Sep 17 00:00:00 2001 From: Jesse Scott Date: Thu, 22 Jun 2017 15:02:02 -0700 Subject: [PATCH] Update default fixture path calculation to be Windows safe. --- lib/puppetlabs_spec_helper/rake_tasks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)