Skip to content

Commit 67a47cc

Browse files
author
shivapoudel
committed
Adapted with_ensure('present/absent')
1 parent 63f6a4c commit 67a47cc

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

spec/classes/python_spec.rb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,13 @@
2626
describe "with python::dev" do
2727
context "true" do
2828
let (:params) {{ :dev => true }}
29-
it { is_expected.to contain_package("python-dev").with(
30-
"ensure" => "present")
31-
}
29+
it { is_expected.to contain_package("python-dev").with_ensure('present') }
3230
end
3331
context "empty/default" do
34-
it { is_expected.to contain_package("python-dev").with(
35-
"ensure" => "absent")
36-
}
32+
it { is_expected.to contain_package("python-dev").with_ensure('absent') }
3733
end
3834
end
39-
40-
35+
4136
describe "with manage_gunicorn" do
4237
context "true" do
4338
let (:params) {{ :manage_gunicorn => true }}

0 commit comments

Comments
 (0)