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
Convert specs to RSpec 3.1.7 syntax with Transpec
[puppet-modules/puppetlabs-apt.git]
/
spec
/
defines
/
ppa_spec.rb
diff --git
a/spec/defines/ppa_spec.rb
b/spec/defines/ppa_spec.rb
index d57c1a5895aca720b4d5466754885411a0468491..f3c76a3bde3facefa498e71c4a41ced6724a0d12 100644
(file)
--- a/
spec/defines/ppa_spec.rb
+++ b/
spec/defines/ppa_spec.rb
@@
-96,7
+96,7
@@
describe 'apt::ppa', :type => :define do
let(:title) { 'ppa:foo' }
it do
expect {
let(:title) { 'ppa:foo' }
it do
expect {
-
should
compile
+
is_expected.to
compile
}.to raise_error(Puppet::Error, /lsbdistcodename fact not available: release parameter required/)
end
end
}.to raise_error(Puppet::Error, /lsbdistcodename fact not available: release parameter required/)
end
end
@@
-114,7
+114,7
@@
describe 'apt::ppa', :type => :define do
let(:title) { 'ppa:foo' }
it do
expect {
let(:title) { 'ppa:foo' }
it do
expect {
-
should
compile
+
is_expected.to
compile
}.to raise_error(Puppet::Error, /apt::ppa is currently supported on Ubuntu only./)
end
end
}.to raise_error(Puppet::Error, /apt::ppa is currently supported on Ubuntu only./)
end
end