Skip to content

Commit d2a7f84

Browse files
committed
Add minimal unit test for the default case
1 parent c1c067e commit d2a7f84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/classes/mysql_server_backup_spec.rb

+4
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ class { 'mysql::server': }
6464
)
6565
}
6666

67+
it {
68+
is_expected.to contain_file('/usr/local/sbin/mysqlbackup.sh').with_content(%r{touch /tmp/mysqlbackup_success})
69+
}
70+
6771
it {
6872
is_expected.to contain_file('/tmp/mysql-backup').with(
6973
ensure: 'directory',

0 commit comments

Comments
 (0)