We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5550a89 + 1bf9371 commit 400e1caCopy full SHA for 400e1ca
spec/framework/detector/os_detector_spec.rb
@@ -117,6 +117,10 @@
117
before do
118
RbConfig::CONFIG['host_os'] = 'linux'
119
120
+ # OS detected for Devuan and Arch Linux is special, so we need to explicitly stub it
121
+ # See https://github.com/puppetlabs/facter/issues/2752
122
+ allow(File).to receive(:readable?).with('/etc/devuan_version').and_return(false)
123
+ allow(File).to receive(:readable?).with('/etc/arch-release').and_return(false)
124
allow(Facter::Resolvers::OsRelease).to receive(:resolve).with(:id)
125
allow(Facter::Resolvers::RedHatRelease).to receive(:resolve).with(:id).and_return(:redhat)
126
allow(Facter::Resolvers::SuseRelease).to receive(:resolve).with(:id)
0 commit comments