Skip to content

Commit fe1c018

Browse files
committed
add test for install_args
1 parent 6aece7e commit fe1c018

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/defines/pip_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@
9494
end
9595
end
9696

97+
describe 'install_args as' do
98+
context 'adds install_args to install command if install_args set' do
99+
let(:params) { { install_args: '--pre' } }
100+
101+
it { is_expected.to contain_exec('pip_install_rpyc').with_command('pip --log /tmp/pip.log install --pre rpyc') }
102+
end
103+
end
104+
97105
describe 'install latest' do
98106
context 'does not use pip search in unless' do
99107
let(:params) { { ensure: 'latest' } }

0 commit comments

Comments
 (0)