X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Funit%2Ffacter%2Fapt_dist_has_updates_spec.rb;h=17b6d817d8a7709a5cc6fe9f1abae14dc5c5ad88;hb=2fef8544ec0ee5ef6b7182ab56a7487194e28657;hp=7846632a5ae20b9bfaf4c6fc2cf8ca10f28da815;hpb=8038d0a43280307c67cff5c610cb6c023683a10a;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/unit/facter/apt_dist_has_updates_spec.rb b/spec/unit/facter/apt_dist_has_updates_spec.rb index 7846632..17b6d81 100644 --- a/spec/unit/facter/apt_dist_has_updates_spec.rb +++ b/spec/unit/facter/apt_dist_has_updates_spec.rb @@ -1,14 +1,14 @@ +# frozen_string_literal: true + require 'spec_helper' describe 'apt_has_dist_updates fact' do subject { Facter.fact(:apt_has_dist_updates).value } - after(:each) { Facter.clear } + before(:each) { Facter.clear } describe 'on non-Debian distro' do before(:each) do - # Adding temporary workaround for this ticket https://tickets.puppetlabs.com/browse/IAC-1143 - Facter.clear allow(Facter.fact(:osfamily)).to receive(:value).once.and_return('Redhat') end it { is_expected.to be_nil }