Change all to each

The existence of this directory is behavior for each test, but will also
stop rspec 3 from complaining.
This commit is contained in:
Hunter Haugen 2015-01-13 17:21:28 -08:00
parent 8db1f2e2f0
commit bfb526899f

View file

@ -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}'")