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:
parent
8db1f2e2f0
commit
bfb526899f
1 changed files with 1 additions and 1 deletions
|
@ -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}'")
|
||||
|
|
Loading…
Reference in a new issue