include_class has been replaced with contain_class.
http://bombasticmonkey.com/2013/12/05/rspec-puppet-1.0.0/
context 'kernel => Windows' do
let(:facts) {{ :kernel => 'Windows' }}
- it { expect { should include_class('firewall::linux') }.to raise_error(Puppet::Error) }
+ it { expect { should contain_class('firewall::linux') }.to raise_error(Puppet::Error) }
end
context 'ensure => stopped' do
context 'ensure => test' do
let(:facts) {{ :kernel => 'Linux' }}
let(:params) {{ :ensure => 'test' }}
- it { expect { should include_class('firewall::linux') }.to raise_error(Puppet::Error) }
+ it { expect { should contain_class('firewall::linux') }.to raise_error(Puppet::Error) }
end
end