]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
change include_class to contain_class in specs
authorRyan Tandy <rtandy@sd63.bc.ca>
Fri, 6 Dec 2013 00:40:10 +0000 (16:40 -0800)
committerRyan Tandy <rtandy@sd63.bc.ca>
Fri, 6 Dec 2013 16:33:05 +0000 (08:33 -0800)
include_class was deprecated starting from rspec-puppet 1.0.0.

spec/classes/apt_spec.rb
spec/classes/release_spec.rb
spec/defines/pin_spec.rb

index a66feac78810ce3175580a2dd5ee4b7298fcd2ea..6d87cc64dccecb4e5aa2071c89bcbfd300e27756 100644 (file)
@@ -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]
index d131b228109dfccd90ec85a9b1cabd61a5e8bb65..31252b99a98048355a2401aee457e6d47bb22b6c 100644 (file)
@@ -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({
index a4cb1e26e3ad74f0ef67a58b52af2f9119278aa9..7a58e78d1f18ef4fc6bd02e02a1576390f45e023 100644 (file)
@@ -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],