|
77 | 77 | context 'adds proxy to install command if proxy set' do |
78 | 78 | let(:params) { { proxy: 'http://my.proxy:3128' } } |
79 | 79 |
|
80 | | - it { is_expected.to contain_exec('pip_install_rpyc').with_command('pip --log /tmp/pip.log install --proxy=http://my.proxy:3128 rpyc') } |
| 80 | + it { is_expected.to contain_exec('pip_install_rpyc').with_command('pip install --proxy=http://my.proxy:3128 rpyc') } |
81 | 81 | end |
82 | 82 | end |
83 | 83 |
|
|
91 | 91 | context 'adds index to install command if index set' do |
92 | 92 | let(:params) { { index: 'http://www.example.com/simple/' } } |
93 | 93 |
|
94 | | - it { is_expected.to contain_exec('pip_install_rpyc').with_command('pip --log /tmp/pip.log install --index-url=http://www.example.com/simple/ rpyc') } |
| 94 | + it { is_expected.to contain_exec('pip_install_rpyc').with_command('pip install --index-url=http://www.example.com/simple/ rpyc') } |
95 | 95 | end |
96 | 96 | end |
97 | 97 |
|
|
105 | 105 | context 'adds extra_index to install command if extra_index set' do |
106 | 106 | let(:params) { { extra_index: 'http://www.example.com/extra/simple/' } } |
107 | 107 |
|
108 | | - it { is_expected.to contain_exec('pip_install_rpyc').with_command('pip --log /tmp/pip.log install --extra-index-url=http://www.example.com/extra/simple/ rpyc') } |
| 108 | + it { is_expected.to contain_exec('pip_install_rpyc').with_command('pip install --extra-index-url=http://www.example.com/extra/simple/ rpyc') } |
109 | 109 | end |
110 | 110 | end |
111 | 111 |
|
|
122 | 122 | context 'adds install_args to install command if install_args set' do |
123 | 123 | let(:params) { { install_args: '--pre' } } |
124 | 124 |
|
125 | | - it { is_expected.to contain_exec('pip_install_rpyc').with_command('pip --log /tmp/pip.log install --pre rpyc') } |
| 125 | + it { is_expected.to contain_exec('pip_install_rpyc').with_command('pip install --pre rpyc') } |
126 | 126 | end |
127 | 127 | end |
128 | 128 |
|
|
151 | 151 | context 'supports v-prefixed version string' do |
152 | 152 | let(:params) { { ensure: 'v1.7.0' } } |
153 | 153 |
|
154 | | - it { is_expected.to contain_exec('pip_install_rpyc').with_command('pip --log /tmp/pip.log install rpyc==v1.7.0') } |
| 154 | + it { is_expected.to contain_exec('pip_install_rpyc').with_command('pip install rpyc==v1.7.0') } |
155 | 155 | end |
156 | 156 |
|
157 | 157 | context 'supports version string without v-prefix' do |
158 | 158 | let(:params) { { ensure: '1.7.0' } } |
159 | 159 |
|
160 | | - it { is_expected.to contain_exec('pip_install_rpyc').with_command('pip --log /tmp/pip.log install rpyc==1.7.0') } |
| 160 | + it { is_expected.to contain_exec('pip_install_rpyc').with_command('pip install rpyc==1.7.0') } |
161 | 161 | end |
162 | 162 | end |
163 | 163 |
|
|
235 | 235 | context 'suceeds with no extras' do |
236 | 236 | let(:params) { {} } |
237 | 237 |
|
238 | | - it { is_expected.to contain_exec('pip_install_requests').with_command('pip --log /tmp/pip.log install requests') } |
| 238 | + it { is_expected.to contain_exec('pip_install_requests').with_command('pip install requests') } |
239 | 239 | end |
240 | 240 |
|
241 | 241 | context 'succeeds with extras' do |
242 | 242 | let(:params) { { extras: ['security'] } } |
243 | 243 |
|
244 | | - it { is_expected.to contain_exec('pip_install_requests').with_command('pip --log /tmp/pip.log install requests[security]') } |
| 244 | + it { is_expected.to contain_exec('pip_install_requests').with_command('pip install requests[security]') } |
245 | 245 | end |
246 | 246 | end |
247 | 247 | end |
|
0 commit comments