Skip to content

Commit

Permalink
Merge pull request ghoneycutt#61 from ghoneycutt/use_contain_class
Browse files Browse the repository at this point in the history
Update spec tests to use contain_class as include_class is deprecated
  • Loading branch information
ghoneycutt committed Apr 3, 2014
2 parents 96872c5 + 9d4af61 commit 5a04e16
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@

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
Expand All @@ -123,9 +123,9 @@
}
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|
Expand Down Expand Up @@ -213,9 +213,9 @@
}
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 {
Expand Down Expand Up @@ -301,9 +301,9 @@
}
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 {
Expand Down

0 comments on commit 5a04e16

Please sign in to comment.