]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Change all to each
authorHunter Haugen <hunter@puppetlabs.com>
Wed, 14 Jan 2015 01:21:28 +0000 (17:21 -0800)
committerHunter Haugen <hunter@puppetlabs.com>
Wed, 14 Jan 2015 01:21:28 +0000 (17:21 -0800)
The existence of this directory is behavior for each test, but will also
stop rspec 3 from complaining.

spec/acceptance/fqdn_rotate_spec.rb

index c37b35a39af31c1ffa4e57ae7bde4bb3bf729cd7..753068bfe91e3e0fa7c159492d649eb427b2d47d 100755 (executable)
@@ -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}'")