diff options
author | mh <mh@immerda.ch> | 2016-01-29 19:33:23 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2016-01-29 19:34:15 +0100 |
commit | 9af8b4274e47b9c89be3368fa6981fd6ab464cb9 (patch) | |
tree | 2f4978472364f350e8c66074929203554163aace /spec/classes/yaml_spec.rb | |
parent | b478a4eb162d5a3a117c44ef9b49f20462facf50 (diff) |
make sure we manage things after the package
Diffstat (limited to 'spec/classes/yaml_spec.rb')
-rw-r--r-- | spec/classes/yaml_spec.rb | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/spec/classes/yaml_spec.rb b/spec/classes/yaml_spec.rb index 53ee507..9ded270 100644 --- a/spec/classes/yaml_spec.rb +++ b/spec/classes/yaml_spec.rb @@ -28,16 +28,18 @@ store_options: :file: /var/lib/trocla/trocla_data.yaml ") } it { should contain_file('/var/lib/trocla').with( - :ensure => 'directory', - :owner => 'puppet', - :group => 0, - :mode => '0600' + :ensure => 'directory', + :owner => 'puppet', + :group => 0, + :mode => '0600', + :require => 'Package[trocla]', )} it { should contain_file('/var/lib/trocla/trocla_data.yaml').with( - :ensure => 'file', - :owner => 'puppet', - :group => 0, - :mode => '0600' + :ensure => 'file', + :owner => 'puppet', + :group => 0, + :mode => '0600', + :require => 'Package[trocla]', )} it { should compile.with_all_deps } end |