install_spec.rb 410 B

1234567891011121314151617
  1. require 'spec_helper'
  2. describe 'nginx::install' do
  3. on_supported_os.each do |os, os_facts|
  4. context "on #{os}" do
  5. let(:facts) { os_facts }
  6. let(:pre_condition) { "class {'nginx':}" }
  7. it { is_expected.to compile.with_all_deps }
  8. case os_facts[:osfamily]
  9. when 'Debian'
  10. it { is_expected.to contain_package('nginx').with_ensure('installed') }
  11. end
  12. end
  13. end
  14. end