summaryrefslogtreecommitdiff
path: root/spec/hosts/with_lens_noaugeas_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/hosts/with_lens_noaugeas_spec.rb')
-rw-r--r--spec/hosts/with_lens_noaugeas_spec.rb9
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