Add the FrozenStrings magic comment
[puppet-modules/puppetlabs-apt.git] / spec / unit / facter / apt_dist_has_updates_spec.rb
index 7846632a5ae20b9bfaf4c6fc2cf8ca10f28da815..17b6d817d8a7709a5cc6fe9f1abae14dc5c5ad88 100644 (file)
@@ -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 }