]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
Merge pull request #195 from sd63/include_class-deprecated
authorAshley Penney <ashley.penney@puppetlabs.com>
Sun, 8 Dec 2013 15:43:51 +0000 (07:43 -0800)
committerAshley Penney <ashley.penney@puppetlabs.com>
Sun, 8 Dec 2013 15:43:51 +0000 (07:43 -0800)
fix deprecation warning with rspec-puppet 1.0.0 (and newer)

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],