From 38c020867318ed9f34b63b6c36ca984e6385545e Mon Sep 17 00:00:00 2001 From: Ryan Tandy Date: Thu, 5 Dec 2013 16:40:10 -0800 Subject: [PATCH] change include_class to contain_class in specs include_class was deprecated starting from rspec-puppet 1.0.0. --- spec/classes/apt_spec.rb | 2 +- spec/classes/release_spec.rb | 2 +- spec/defines/pin_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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], -- 2.45.2