From: Garrett Honeycutt Date: Fri, 27 Dec 2013 22:39:21 +0000 (-0500) Subject: Support rspec-puppet v1.0.0 X-Git-Tag: 0.5.0~17^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=b9c3fabdd2a8e938f021d854262577f7f3e3dcb9;p=puppet-modules%2Fpuppetlabs-firewall.git 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/ --- 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