From b5d93cad41cc46831bfa623692dd54d7a6ab7d0c Mon Sep 17 00:00:00 2001 From: Mike Baynton Date: Wed, 28 Feb 2018 12:59:46 -0600 Subject: [PATCH] Add expectation demonstrating that the class under test does not get passed the desired package_version values. --- spec/classes/puppet_agent_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/classes/puppet_agent_spec.rb b/spec/classes/puppet_agent_spec.rb index 872ba34b3..066f71dc5 100644 --- a/spec/classes/puppet_agent_spec.rb +++ b/spec/classes/puppet_agent_spec.rb @@ -122,6 +122,7 @@ def global_facts(facts, os) it { is_expected.to compile.with_all_deps } it { expect { catalogue }.not_to raise_error } + it { is_expected.to contain_class('puppet-agent').with_package_version(version) } end end