Skip to content

Commit 530b9ed

Browse files
add spec test for index parameter
1 parent 7100704 commit 530b9ed

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/defines/pyvenv_spec.rb

+9
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@
3535
}
3636
end
3737
end
38+
context 'custom index is provided' do
39+
40+
let :params do
41+
{
42+
index: 'https://site.tld',
43+
}
44+
end
45+
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') }
46+
end
3847
end
3948

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

0 commit comments

Comments
 (0)