diff options
-rw-r--r-- | spec/hosts/with_lens_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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') } |