From 9d4af6156a2c2145865b22b7c2dff22504ac797d Mon Sep 17 00:00:00 2001 From: Garrett Honeycutt Date: Thu, 3 Apr 2014 14:00:36 +0200 Subject: [PATCH] Update spec tests to use contain_class as include_class is deprecated --- spec/classes/init_spec.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spec/classes/init_spec.rb b/spec/classes/init_spec.rb index 7cd5cd0..0277ed9 100644 --- a/spec/classes/init_spec.rb +++ b/spec/classes/init_spec.rb @@ -108,7 +108,7 @@ describe 'ssh' do it 'should fail' do 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./) end end @@ -123,9 +123,9 @@ describe 'ssh' do } 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| @@ -213,9 +213,9 @@ describe 'ssh' do } 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| it { @@ -301,9 +301,9 @@ describe 'ssh' do } 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| it {