summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppetlabs.com>2014-06-26 13:18:03 -0700
committerHunter Haugen <hunter@puppetlabs.com>2014-06-26 13:18:03 -0700
commit42750fe490da03f8cd2787393d9474f57ce35b43 (patch)
tree234f57c2ed5b205acadd3b8040358d6202a77f51
parenta3de9853078f63541090c29f9f9d911869fbf071 (diff)
parent1b893ff653d64ca8a923ab37a0c222fc35c0eb5f (diff)
downloadpuppet-stdlib-42750fe490da03f8cd2787393d9474f57ce35b43.tar.gz
puppet-stdlib-42750fe490da03f8cd2787393d9474f57ce35b43.tar.bz2
Merge pull request #292 from hunner/fix_rm
Need quotes for spaces in path
-rwxr-xr-xspec/acceptance/fqdn_rotate_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/acceptance/fqdn_rotate_spec.rb b/spec/acceptance/fqdn_rotate_spec.rb
index ee2afb5..c37b35a 100755
--- a/spec/acceptance/fqdn_rotate_spec.rb
+++ b/spec/acceptance/fqdn_rotate_spec.rb
@@ -19,12 +19,12 @@ describe 'fqdn_rotate function', :unless => UNSUPPORTED_PLATFORMS.include?(fact(
end
end
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
before :all do
#No need to create on windows, PE creates by default
if fact('osfamily') !~ /windows/i
- shell("mkdir -p #{facts_d}")
+ shell("mkdir -p '#{facts_d}'")
end
end
it 'fqdn_rotates floats' do