Skip to content

Commit c85783a

Browse files
author
Shiva Poudel
committed
Updated with_{mode,owner,group} func in spec/requirements_spec.rb
1 parent 07d6f43 commit c85783a

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

spec/defines/requirements_spec.rb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@
1919
describe "requirements as" do
2020
context "/requirements.txt" do
2121
let (:params) {{ :requirements => "/requirements.txt" }}
22-
it { is_expected.to contain_file("/requirements.txt").with(
23-
"mode" => "0644"
24-
25-
)}
22+
it { is_expected.to contain_file("/requirements.txt").with_mode('0644') }
2623
end
2724

2825
describe "with owner" do
@@ -42,10 +39,7 @@
4239

4340
describe "with owner" do
4441
context "default" do
45-
it { is_expected.to contain_file("/requirements.txt").with(
46-
"owner" => "root",
47-
"group" => "root"
48-
)}
42+
it { is_expected.to contain_file("/requirements.txt").with_owner('root').with_group('root') }
4943
end
5044
end
5145
end

0 commit comments

Comments
 (0)