From 108205b8915af54bcac8d6805c3d910759b2c063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Mon, 11 Jul 2016 15:01:53 +0200 Subject: Fix unit tests when augeas class is not included --- spec/defines/augeas_lens_spec.rb | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'spec/defines/augeas_lens_spec.rb') diff --git a/spec/defines/augeas_lens_spec.rb b/spec/defines/augeas_lens_spec.rb index b74164b..0fa1358 100644 --- a/spec/defines/augeas_lens_spec.rb +++ b/spec/defines/augeas_lens_spec.rb @@ -3,26 +3,9 @@ require 'spec_helper' describe 'augeas::lens' do let (:title) { 'foo' } - context 'when not declaring augeas class first' do - let (:params) do - { - :lens_source => '/tmp/foo.aug', - } - end - - it 'should error' do - expect { is_expected.to compile }.to raise_error(/You must declare the augeas class/) - end - end - lens_dir = Puppet.version < '4.0.0' ? '/usr/share/augeas/lenses' : '/opt/puppetlabs/puppet/share/augeas/lenses' context 'when declaring augeas class first' do - - let(:pre_condition) do - "class { '::augeas': }" - end - on_supported_os.each do |os, facts| context "on #{os}" do let(:facts) do -- cgit v1.2.3