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 #732 from willmeek/release_4_4_1
[puppet-modules/puppetlabs-apt.git]
/
spec
/
defines
/
setting_spec.rb
diff --git
a/spec/defines/setting_spec.rb
b/spec/defines/setting_spec.rb
index 0b6ca99b60eadb5f706c4da31f6d51b257f4d2f8..1a94de78f41f62f8e3bcfb177173f0546d090114 100644
(file)
--- a/
spec/defines/setting_spec.rb
+++ b/
spec/defines/setting_spec.rb
@@
-20,7
+20,7
@@
describe 'apt::setting' do
describe 'when using the defaults' do
context 'without source or content' do
it do
describe 'when using the defaults' do
context 'without source or content' do
it do
-
expect { subject.call }
.to raise_error(Puppet::Error, %r{needs either of })
+
is_expected
.to raise_error(Puppet::Error, %r{needs either of })
end
end
end
end
@@
-97,7
+97,7
@@
describe 'apt::setting' do
let(:params) { default_params.merge(source: 'la') }
it do
let(:params) { default_params.merge(source: 'la') }
it do
-
expect { subject.call }
.to raise_error(Puppet::Error, %r{cannot have both })
+
is_expected
.to raise_error(Puppet::Error, %r{cannot have both })
end
end
end
end
@@
-106,7
+106,7
@@
describe 'apt::setting' do
let(:params) { default_params }
it do
let(:params) { default_params }
it do
-
expect { subject.call }
.to raise_error(Puppet::Error, %r{must start with either})
+
is_expected
.to raise_error(Puppet::Error, %r{must start with either})
end
end
end
end
@@
-114,7
+114,7
@@
describe 'apt::setting' do
let(:params) { default_params.merge(ensure: 'banana') }
it do
let(:params) { default_params.merge(ensure: 'banana') }
it do
-
expect { subject.call }
.to raise_error(Puppet::Error, %r{Enum\['absent', 'file', 'present'\]})
+
is_expected
.to raise_error(Puppet::Error, %r{Enum\['absent', 'file', 'present'\]})
end
end
end
end