Skip to content

Commit 7d4ec33

Browse files
add spec test for index parameter
1 parent 7100704 commit 7d4ec33

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spec/defines/pyvenv_spec.rb

+10
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@
3535
}
3636
end
3737
end
38+
39+
context 'custom index is provided' do
40+
let :params do
41+
{
42+
index: 'https://site.tld',
43+
}
44+
end
45+
46+
it { is_expected.to contain_exec('python_virtualenv_/opt/env').with_command('pyvenv-3.5 --clear /opt/env && /opt/env/bin/pip --log /opt/env/pip.log install -i https://site.tld --upgrade pip && /opt/env/bin/pip --log /opt/env/pip.log install -i https://site.tld --upgrade setuptools') }
47+
end
3848
end
3949

4050
context "prompt on #{os} with python 3.6" do

0 commit comments

Comments
 (0)