From b9c3fabdd2a8e938f021d854262577f7f3e3dcb9 Mon Sep 17 00:00:00 2001 From: Garrett Honeycutt Date: Fri, 27 Dec 2013 17:39:21 -0500 Subject: [PATCH] Support rspec-puppet v1.0.0 include_class has been replaced with contain_class. http://bombasticmonkey.com/2013/12/05/rspec-puppet-1.0.0/ --- spec/unit/classes/firewall_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/unit/classes/firewall_spec.rb b/spec/unit/classes/firewall_spec.rb index 87c3f2b..efc153a 100644 --- a/spec/unit/classes/firewall_spec.rb +++ b/spec/unit/classes/firewall_spec.rb @@ -8,7 +8,7 @@ describe 'firewall', :type => :class do 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 @@ -20,6 +20,6 @@ describe 'firewall', :type => :class 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 -- 2.45.2