Skip to content

Commit 6b25866

Browse files
committed
BS: You remind me of a man.
B: What man? BS: The man with the power. B: What power? BS: The power of voodoo. B: Voodoo? BS: You do. B: Do what? BS: Remind me of a man. B: What man? BS: The man with the power... -- Cary Grant, "The Bachelor and the Bobby-Soxer"
1 parent ded4d0b commit 6b25866

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

‎spec/classes/mycnf_template_spec.rb‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,18 @@
7777
end
7878

7979
context'with includedir'do
80-
let(:params){{includedir: '/etc/my.cnf.d'}}
80+
let(:params)do
81+
{
82+
includedir: '/etc/my.cnf.d',
83+
recurse: true,
84+
purge: true
85+
}
86+
end
8187

82-
it'makes the directory'do
88+
it'makes the directory with correct recurse and purge values'do
8389
expect(subject).tocontain_file('/etc/my.cnf.d').with(ensure: :directory,
84-
recurse: false,
85-
purge: false,
90+
recurse: true,
91+
purge: true,
8692
mode: '0755')
8793
end
8894

@@ -94,8 +100,6 @@
94100

95101
it'shouldnt contain the directory'do
96102
expect(subject).not_tocontain_file('mysql-config-file').with(ensure: :directory,
97-
recurse: false,
98-
purge: false,
99103
mode: '0755')
100104
end
101105

0 commit comments

Comments
(0)