Using contain_class instead of include_class

Per rspec-puppet-1.0.1 warning:

DEPRECATION: include_class is deprecated. Use contain_class instead.
Called from .../vendor/gems/rspec-puppet-1.0.1/lib/rspec-puppet/
matchers/include_class.rb:7

Change-Id: I3cf9ac1ff9549b5bb1182010d42e3beee1efa4cc
This commit is contained in:
Doug Schaapveld 2013-12-17 21:59:44 -06:00
parent eb7c33bb1f
commit 2208119f8d
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ require 'spec_helper'
describe 'glance::client' do
shared_examples 'glance client' do
it { should include_class('glance::params') }
it { should contain_class('glance::params') }
it { should contain_package('python-glanceclient').with(
:name => 'python-glanceclient',
:ensure => 'present'

View File

@ -18,7 +18,7 @@ describe 'glance::db::mysql' do
}
end
it { should include_class('mysql::python') }
it { should contain_class('mysql::python') }
it { should contain_mysql__db('glance').with(
:password => 'glancepass1',