Need quotes for spaces in path

This commit is contained in:
Hunter Haugen 2014-06-26 13:17:07 -07:00
parent a3de985307
commit 1b893ff653

View file

@ -19,12 +19,12 @@ describe 'fqdn_rotate function', :unless => UNSUPPORTED_PLATFORMS.include?(fact(
end end
end end
after :each do after :each do
shell("if [ -f #{facts_d}/fqdn.txt ] ; then rm #{facts_d}/fqdn.txt ; fi") shell("if [ -f '#{facts_d}/fqdn.txt' ] ; then rm '#{facts_d}/fqdn.txt' ; fi")
end end
before :all do before :all do
#No need to create on windows, PE creates by default #No need to create on windows, PE creates by default
if fact('osfamily') !~ /windows/i if fact('osfamily') !~ /windows/i
shell("mkdir -p #{facts_d}") shell("mkdir -p '#{facts_d}'")
end end
end end
it 'fqdn_rotates floats' do it 'fqdn_rotates floats' do