From: Ryan Tandy Date: Fri, 6 Dec 2013 00:40:10 +0000 (-0800) Subject: change include_class to contain_class in specs X-Git-Tag: 1.4.1~12^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=38c020867318ed9f34b63b6c36ca984e6385545e;p=puppet-modules%2Fpuppetlabs-apt.git change include_class to contain_class in specs include_class was deprecated starting from rspec-puppet 1.0.0. --- diff --git a/spec/classes/apt_spec.rb b/spec/classes/apt_spec.rb index a66feac..6d87cc6 100644 --- a/spec/classes/apt_spec.rb +++ b/spec/classes/apt_spec.rb @@ -39,7 +39,7 @@ describe 'apt', :type => :class do end end - it { should include_class("apt::params") } + it { should contain_class("apt::params") } it { if param_hash[:purge_sources_list] diff --git a/spec/classes/release_spec.rb b/spec/classes/release_spec.rb index d131b22..31252b9 100644 --- a/spec/classes/release_spec.rb +++ b/spec/classes/release_spec.rb @@ -8,7 +8,7 @@ describe 'apt::release', :type => :class do let (:params) { param_set } - it { should include_class("apt::params") } + it { should contain_class("apt::params") } it { should contain_file("/etc/apt/apt.conf.d/01release").with({ diff --git a/spec/defines/pin_spec.rb b/spec/defines/pin_spec.rb index a4cb1e2..7a58e78 100644 --- a/spec/defines/pin_spec.rb +++ b/spec/defines/pin_spec.rb @@ -85,7 +85,7 @@ describe 'apt::pin', :type => :define do param_set[:params] end - it { should include_class("apt::params") } + it { should contain_class("apt::params") } it { should contain_file("#{title}.pref").with({ 'ensure' => param_hash[:ensure],