diff --git a/docs/resources/pip.md.erb b/docs/resources/pip.md.erb index a334551d9..59e7d10af 100644 --- a/docs/resources/pip.md.erb +++ b/docs/resources/pip.md.erb @@ -40,6 +40,13 @@ The following examples show how to use this InSpec audit resource. its('version') { should eq '2.8' } end +### Test packages installed into a non-default location (e.g. virtualenv) by passing a custom path to pip executable + + describe pip('Jinja2', '/path/to/bin/pip') do + it { should be_installed } + its('version') { should eq '2.8' } + end +
## Matchers