diff options
author | Hunter Haugen <hunter@puppetlabs.com> | 2014-06-26 13:18:03 -0700 |
---|---|---|
committer | Hunter Haugen <hunter@puppetlabs.com> | 2014-06-26 13:18:03 -0700 |
commit | 42750fe490da03f8cd2787393d9474f57ce35b43 (patch) | |
tree | 234f57c2ed5b205acadd3b8040358d6202a77f51 | |
parent | a3de9853078f63541090c29f9f9d911869fbf071 (diff) | |
parent | 1b893ff653d64ca8a923ab37a0c222fc35c0eb5f (diff) | |
download | puppet-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-x | spec/acceptance/fqdn_rotate_spec.rb | 4 |
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 |