Skip to content

Commit 2fd2a90

Browse files
committed
Added tests for pip uninstall
1 parent e271d85 commit 2fd2a90

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

spec/defines/pip_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@
116116

117117
it { is_expected.to contain_exec('pip_uninstall_rpyc').with_command(%r{uninstall.*rpyc$}) }
118118
end
119+
120+
context 'passes correct package name' do
121+
let(:params) { { ensure: 'absent', 'pkgname': 'r-pyc' } }
122+
123+
it { is_expected.not_to contain_exec('pip_install_rpyc') }
124+
125+
it { is_expected.to contain_exec('pip_uninstall_rpyc').with_command(%r{uninstall.*r-pyc$}) }
126+
end
119127
end
120128
end
121129
end

0 commit comments

Comments
 (0)