Skip to content

Commit

Permalink
add test for install_args
Browse files Browse the repository at this point in the history
  • Loading branch information
zanyou committed Nov 16, 2021
1 parent 6aece7e commit fe1c018
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/defines/pip_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@
end
end

describe 'install_args as' do
context 'adds install_args to install command if install_args set' do
let(:params) { { install_args: '--pre' } }

it { is_expected.to contain_exec('pip_install_rpyc').with_command('pip --log /tmp/pip.log install --pre rpyc') }
end
end

describe 'install latest' do
context 'does not use pip search in unless' do
let(:params) { { ensure: 'latest' } }
Expand Down

0 comments on commit fe1c018

Please sign in to comment.