let :pre_condition do
'class { "apt": }'
end
- let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'wheezy' } }
+ let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'wheezy', :puppetversion => Puppet.version, } }
let(:title) { 'my_pin' }
context 'defaults' do
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /Only integers are allowed/)
end
end
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /parameter version cannot be used in general form/)
end
end
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /parameters release and origin are mutually exclusive/)
end
end
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /parameters release, origin, and version are mutually exclusive/)
end
end
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /parameters release, origin, and version are mutually exclusive/)
end
end