Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bump minimal puppet version to 6.0.0 in metadata.json
[puppet-modules/puppetlabs-apt.git]
/
spec
/
unit
/
facter
/
apt_dist_has_updates_spec.rb
diff --git
a/spec/unit/facter/apt_dist_has_updates_spec.rb
b/spec/unit/facter/apt_dist_has_updates_spec.rb
index 7846632a5ae20b9bfaf4c6fc2cf8ca10f28da815..17b6d817d8a7709a5cc6fe9f1abae14dc5c5ad88 100644
(file)
--- 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 }
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
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 }
allow(Facter.fact(:osfamily)).to receive(:value).once.and_return('Redhat')
end
it { is_expected.to be_nil }