]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
(maint) Clear facter before to avoid parallel pollution 3.0.0
authorHunter Haugen <hunter@puppet.com>
Mon, 17 Apr 2017 16:52:42 +0000 (09:52 -0700)
committerHunter Haugen <hunter@puppet.com>
Mon, 17 Apr 2017 16:52:42 +0000 (09:52 -0700)
spec/unit/facter/apt_update_last_success_spec.rb

index 4de608d7dbc4117b98d570805fac40868b595882..ada6aa58947aaf8c2ec4a324071a68dbf346da80 100644 (file)
@@ -2,6 +2,7 @@ require 'spec_helper'
 
 describe 'apt_update_last_success fact' do
   subject { Facter.fact(:apt_update_last_success).value }
+  before(:each) { Facter.clear }
   after(:each) { Facter.clear }
 
   describe 'on Debian based distro which has not yet created the update-success-stamp file' do