diff --git a/spec/classes/nginx_spec.rb b/spec/classes/nginx_spec.rb index 64fd1a3..3a576c4 100644 --- a/spec/classes/nginx_spec.rb +++ b/spec/classes/nginx_spec.rb @@ -34,6 +34,7 @@ describe 'nginx' do :operatingsystem => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'precise', + :lsbdistid => 'Debian', } end end diff --git a/spec/classes/package_spec.rb b/spec/classes/package_spec.rb index 0b365a3..63b10bd 100644 --- a/spec/classes/package_spec.rb +++ b/spec/classes/package_spec.rb @@ -48,8 +48,13 @@ describe 'nginx::package' do end end - shared_examples 'debian' do |operatingsystem, lsbdistcodename| - let(:facts) {{ :operatingsystem => operatingsystem, :osfamily => 'Debian', :lsbdistcodename => lsbdistcodename }} + shared_examples 'debian' do |operatingsystem, lsbdistcodename, lsbdistid| + let(:facts) {{ + :operatingsystem => operatingsystem, + :osfamily => 'Debian', + :lsbdistcodename => lsbdistcodename, + :lsbdistid => lsbdistid + }} context "using defaults" do it { should contain_package('nginx') } @@ -105,8 +110,8 @@ describe 'nginx::package' do end context 'debian' do - it_behaves_like 'debian', 'debian', 'wheezy' - it_behaves_like 'debian', 'ubuntu', 'precise' + it_behaves_like 'debian', 'debian', 'wheezy', 'debian' + it_behaves_like 'debian', 'ubuntu', 'precise', 'ubuntu' end context 'suse' do