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
Merge pull request #504 from mhaskel/fix_tests
[puppet-modules/puppetlabs-apt.git]
/
spec
/
defines
/
pin_spec.rb
diff --git
a/spec/defines/pin_spec.rb
b/spec/defines/pin_spec.rb
index e4d5d0ae1af79538f76b85b6f16946911ecc7af3..c77bb6ba6e5a5d8c12cf8686cf9398fe7529fff0 100644
(file)
--- a/
spec/defines/pin_spec.rb
+++ b/
spec/defines/pin_spec.rb
@@
-3,7
+3,7
@@
describe 'apt::pin', :type => :define do
let :pre_condition do
'class { "apt": }'
end
let :pre_condition do
'class { "apt": }'
end
- let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } }
+ let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian'
, :lsbdistcodename => 'wheezy'
} }
let(:title) { 'my_pin' }
context 'defaults' do
let(:title) { 'my_pin' }
context 'defaults' do
@@
-80,7
+80,7
@@
describe 'apt::pin', :type => :define do
end
it do
expect {
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /Only integers are allowed/)
end
end
}.to raise_error(Puppet::Error, /Only integers are allowed/)
end
end
@@
-93,7
+93,7
@@
describe 'apt::pin', :type => :define do
end
it do
expect {
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
}.to raise_error(Puppet::Error, /parameter version cannot be used in general form/)
end
end
@@
-107,7
+107,7
@@
describe 'apt::pin', :type => :define do
end
it do
expect {
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /parameters release and origin are mutually exclusive/)
end
end
}.to raise_error(Puppet::Error, /parameters release and origin are mutually exclusive/)
end
end
@@
-122,7
+122,7
@@
describe 'apt::pin', :type => :define do
end
it do
expect {
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
}.to raise_error(Puppet::Error, /parameters release, origin, and version are mutually exclusive/)
end
end
@@
-137,7
+137,7
@@
describe 'apt::pin', :type => :define do
end
it do
expect {
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
}.to raise_error(Puppet::Error, /parameters release, origin, and version are mutually exclusive/)
end
end