Skip to content

Commit

Permalink
fix rspec-puppet 1.0.1 deprecation warning
Browse files Browse the repository at this point in the history
DEPRECATION: include_class is deprecated. Use contain_class instead.
  • Loading branch information
Joshua Hoblitt committed Dec 21, 2013
1 parent 0d15b7e commit 720a1de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/classes/params_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
shared_examples 'osfamily' do |family|
let(:facts) {{ :osfamily => family }}

it { should include_class('smartd::params') }
it { should contain_class('smartd::params') }
end

describe 'for osfamily RedHat' do
Expand All @@ -29,7 +29,7 @@
end

it 'should fail' do
expect { should include_class('smartd::params') }.
expect { should contain_class('smartd::params') }.
to raise_error(Puppet::Error, /not supported on Solaris/)
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/smartd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@
end

it do
should include_class('smartd')
should include_class('smartd::params')
should contain_class('smartd')
should contain_class('smartd::params')
should contain_package('smartmontools')
should contain_service('smartd')
should contain_file('/etc/smartd.conf')\
Expand Down

0 comments on commit 720a1de

Please sign in to comment.