Skip to content

Commit b5d93ca

Browse files
committed
Add expectation demonstrating that the class under test does not get passed the desired package_version values.
1 parent b71d946 commit b5d93ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/classes/puppet_agent_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def global_facts(facts, os)
122122

123123
it { is_expected.to compile.with_all_deps }
124124
it { expect { catalogue }.not_to raise_error }
125+
it { is_expected.to contain_class('puppet-agent').with_package_version(version) }
125126
end
126127
end
127128

0 commit comments

Comments
 (0)