spec/beaker/host/cisco_spec.rb in beaker-3.15.0 vs spec/beaker/host/cisco_spec.rb in beaker-3.16.0
- old
+ new
@@ -26,10 +26,10 @@
expect( answer_test ).to be === answer_correct
end
it 'uses `sudo` if not root' do
@options = { :user => 'notroot' }
- answer_correct = "source /etc/profile; sudo sh -c \""
+ answer_correct = "source /etc/profile; sudo -E sh -c \""
answer_test = host.prepend_commands( 'fake_command' )
expect( answer_test ).to be === answer_correct
end
it 'ends with the :vrf host parameter' do