describe "With unknown lsbdistid" do
- let(:facts) { { :lsbdistid => 'CentOS' } }
+ let(:facts) { { :lsbdistid => 'CentOS', :osfamily => 'Debian' } }
let (:title) { 'my_package' }
it do
end
end
+
+ describe "With lsb-release not installed" do
+ let(:facts) { { :lsbdistid => '', :osfamily => 'Debian' } }
+ let (:title) { 'my_package' }
+
+ it do
+ expect {
+ should compile
+ }.to raise_error(Puppet::Error, /Unable to determine lsbdistid, is lsb-release installed/)
+ end
+ end
+
end