Skip to content

Commit da1d742

Browse files
committed
Add more unit tests
1 parent a74e14c commit da1d742

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/classes/zendhq_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
it { is_expected.to contain_class('zendhq::package') }
1717
it { is_expected.to contain_class('zendhq::service') }
1818
it { is_expected.to contain_class('zend_common::license').with_source(file_uri) }
19+
it { is_expected.to contain_class('zend_common::license').that_notifies('Class[zendhq::service]') }
20+
it { is_expected.to contain_class('zend_common::license').that_subscribes_to('Class[zendhq::package]') }
1921
end
2022

2123
describe 'installs epel-release on CentOS' do
@@ -30,7 +32,8 @@
3032
settings = { 'zendhq.daemon_uri': 'tcp://0.0.0.0:10090' }
3133
let(:params) { { license_source: file_uri, settings: settings } }
3234

33-
it { is_expected.to contain_class('zendhq::config') }
35+
it { is_expected.to contain_class('zendhq::config').that_notifies('Class[zendhq::service]') }
36+
it { is_expected.to contain_class('zendhq::config').that_subscribes_to('Class[zendhq::package]') }
3437
end
3538
end
3639
end

0 commit comments

Comments
 (0)