In order to make sure that the home directory for the test user is
created and destroyed, add managehome to the setup and teardown
manifests for the testuser.
before(:all) do
# {{{ setup
- on(host,apply_manifest("user{'testuser': ensure => present, }"))
+ on(host,apply_manifest("user{'testuser': ensure => present, managehome => true }"))
on(host,apply_manifest("user{'vagrant': ensure => present, }"))
# install git
install_package(host, 'git')
after(:all) do
# {{{ teardown
- on(host,apply_manifest("user{'testuser': ensure => absent,}"))
+ on(host,apply_manifest("user{'testuser': ensure => absent, managehome => true }"))
# }}}
end