commit 75a5f1e9ca2f35fcdbb6da9ceb3a4aab43dab363 Author: ZhongShengping Date: Mon Oct 12 10:46:40 2020 +0800 Include deps class in unit test for sync Change-Id: Ia8fd8c95fe1572b9132899ed76d1ca6386220900 diff --git a/puppet-{{cookiecutter.project_name}}/spec/classes/{{cookiecutter.project_name}}_db_sync_spec.rb b/puppet-{{cookiecutter.project_name}}/spec/classes/{{cookiecutter.project_name}}_db_sync_spec.rb index ee33894..d7f5119 100644 --- a/puppet-{{cookiecutter.project_name}}/spec/classes/{{cookiecutter.project_name}}_db_sync_spec.rb +++ b/puppet-{{cookiecutter.project_name}}/spec/classes/{{cookiecutter.project_name}}_db_sync_spec.rb @@ -2,6 +2,9 @@ require 'spec_helper' describe '{{cookiecutter.project_name}}::db::sync' do shared_examples '{{cookiecutter.project_name}}-dbsync' do + + it { is_expected.to contain_class('{{cookiecutter.project_name}}::deps') } + it { should contain_exec('{{cookiecutter.project_name}}-db-sync').with( :command => '{{cookiecutter.project_name}}-manage db_sync ', :path => [ '/bin', '/usr/bin', ],