Sha256: 93a3a0dc89293a9ec32eaa5e451ad9eec89bc0b9d6af2567db313c1997e40bd0
Contents?: true
Size: 663 Bytes
Versions: 24
Compression:
Stored size: 663 Bytes
Contents
require 'spec_helper' describe 'up2date package provider' do # This sets the class itself as the subject rather than # an instance of the class. subject do Puppet::Type.type(:package).provider(:up2date) end osfamilies = [ 'redhat' ] releases = [ '2.1', '3', '4' ] osfamilies.each do |osfamily| releases.each do |release| it "should be the default provider on #{osfamily} #{release}" do allow(Facter).to receive(:value).with('os.family').and_return(osfamily) allow(Facter).to receive(:value).with('os.distro.release.full').and_return(release) expect(subject.default?).to be_truthy end end end end
Version data entries
24 entries across 24 versions & 1 rubygems