Merge pull request #61 from ghoneycutt/use_contain_class

Update spec tests to use contain_class as include_class is deprecated
This commit is contained in:
Garrett Honeycutt 2014-04-03 14:21:22 +02:00
commit 5a04e16138

View File

@ -108,7 +108,7 @@ describe 'ssh' do
it 'should fail' do it 'should fail' do
expect { expect {
should include_class('ssh') should contain_class('ssh')
}.to raise_error(Puppet::Error,/^ssh module supports Solaris kernel release 5.9, 5.10 and 5.11./) }.to raise_error(Puppet::Error,/^ssh module supports Solaris kernel release 5.9, 5.10 and 5.11./)
end end
end end
@ -123,9 +123,9 @@ describe 'ssh' do
} }
end end
it { should include_class('ssh')} it { should contain_class('ssh')}
it { should_not include_class('common')} it { should_not contain_class('common')}
['SUNWsshcu','SUNWsshdr','SUNWsshdu','SUNWsshr','SUNWsshu'].each do |pkg| ['SUNWsshcu','SUNWsshdr','SUNWsshdu','SUNWsshr','SUNWsshu'].each do |pkg|
@ -213,9 +213,9 @@ describe 'ssh' do
} }
end end
it { should include_class('ssh')} it { should contain_class('ssh')}
it { should_not include_class('common')} it { should_not contain_class('common')}
['SUNWsshcu','SUNWsshdr','SUNWsshdu','SUNWsshr','SUNWsshu'].each do |pkg| ['SUNWsshcu','SUNWsshdr','SUNWsshdu','SUNWsshr','SUNWsshu'].each do |pkg|
it { it {
@ -301,9 +301,9 @@ describe 'ssh' do
} }
end end
it { should include_class('ssh')} it { should contain_class('ssh')}
it { should_not include_class('common')} it { should_not contain_class('common')}
['SUNWsshcu','SUNWsshdr','SUNWsshdu','SUNWsshr','SUNWsshu'].each do |pkg| ['SUNWsshcu','SUNWsshdr','SUNWsshdu','SUNWsshr','SUNWsshu'].each do |pkg|
it { it {