From: Hunter Haugen Date: Wed, 14 Jan 2015 01:21:28 +0000 (-0800) Subject: Change all to each X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=bfb526899f215f3fde98ff00cf5f63aa51e657db;p=puppet-stdlib.git Change all to each The existence of this directory is behavior for each test, but will also stop rspec 3 from complaining. --- diff --git a/spec/acceptance/fqdn_rotate_spec.rb b/spec/acceptance/fqdn_rotate_spec.rb index c37b35a..753068b 100755 --- a/spec/acceptance/fqdn_rotate_spec.rb +++ b/spec/acceptance/fqdn_rotate_spec.rb @@ -21,7 +21,7 @@ describe 'fqdn_rotate function', :unless => UNSUPPORTED_PLATFORMS.include?(fact( after :each do shell("if [ -f '#{facts_d}/fqdn.txt' ] ; then rm '#{facts_d}/fqdn.txt' ; fi") end - before :all do + before :each do #No need to create on windows, PE creates by default if fact('osfamily') !~ /windows/i shell("mkdir -p '#{facts_d}'")