From 58d103993ffe332a8746f298b151b7d495ce58aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Tue, 28 Oct 2014 12:55:00 +0100 Subject: Also fix with_lens host spec --- spec/hosts/with_lens_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec') diff --git a/spec/hosts/with_lens_spec.rb b/spec/hosts/with_lens_spec.rb index 35ab8b6..10437c9 100644 --- a/spec/hosts/with_lens_spec.rb +++ b/spec/hosts/with_lens_spec.rb @@ -3,6 +3,7 @@ require 'spec_helper' describe 'with_lens' do let (:facts) { { :osfamily => 'RedHat', + :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', } } context 'when lens_source is passed' do @@ -11,6 +12,7 @@ describe 'with_lens' do :augeas_lens_source => '/tmp/foo.aug', :augeas_stock_since => :undef, :augeas_test_source => :undef, + :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', } } it { should contain_file('/usr/share/augeas/lenses/foo.aug') } @@ -25,6 +27,7 @@ describe 'with_lens' do :augeas_lens_source => '/tmp/foo.aug', :augeas_test_source => '/tmp/test_foo.aug', :augeas_stock_since => :undef, + :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', } } it { should contain_file('/usr/share/augeas/lenses/foo.aug') } @@ -40,6 +43,7 @@ describe 'with_lens' do :augeas_stock_since => '1.2.3', :augeasversion => '1.0.0', :augeas_test_source => :undef, + :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', } } it { should contain_file('/usr/share/augeas/lenses/foo.aug') } @@ -53,6 +57,7 @@ describe 'with_lens' do :augeas_stock_since => '1.2.3', :augeasversion => '1.5.0', :augeas_test_source => :undef, + :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', } } it { should_not contain_file('/usr/share/augeas/lenses/foo.aug') } -- cgit v1.2.3