From a534f53b803ba46dd7ea2b55312949af688f850b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Fri, 15 Mar 2013 20:39:16 +0100 Subject: Add specs for hosts --- spec/hosts/with_lens_noaugeas_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 spec/hosts/with_lens_noaugeas_spec.rb (limited to 'spec/hosts/with_lens_noaugeas_spec.rb') 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 -- cgit v1.2.3