summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2014-10-28 12:55:00 +0100
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2014-10-28 12:55:00 +0100
commit58d103993ffe332a8746f298b151b7d495ce58aa (patch)
tree0eb59f9d1603387b1d19547cab0b5fd321424b58 /spec
parent304446d1a91643f50ee723c13276c65b39310b66 (diff)
Also fix with_lens host spec
Diffstat (limited to 'spec')
-rw-r--r--spec/hosts/with_lens_spec.rb5
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') }