diff options
author | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2013-03-15 20:39:16 +0100 |
---|---|---|
committer | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2013-03-15 20:39:16 +0100 |
commit | a534f53b803ba46dd7ea2b55312949af688f850b (patch) | |
tree | 9b587b540e2ed653318802ef9a6fc623c51cde85 /spec/hosts/with_lens_noaugeas_spec.rb | |
parent | b9de77d2043341a6dd60c91daa26b6434c988f5f (diff) |
Add specs for hosts
Diffstat (limited to 'spec/hosts/with_lens_noaugeas_spec.rb')
-rw-r--r-- | spec/hosts/with_lens_noaugeas_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/hosts/with_lens_noaugeas_spec.rb b/spec/hosts/with_lens_noaugeas_spec.rb new file mode 100644 index 0000000..b26563b --- /dev/null +++ b/spec/hosts/with_lens_noaugeas_spec.rb @@ -0,0 +1,9 @@ +require 'spec_helper' + +describe 'with_lens_noaugeas' do + it 'should error' do + expect { + should contain_file('/usr/share/augeas/lenses/foo.aug') + }.to raise_error(Puppet::Error, /You must declare the augeas class/) + end +end |