diff --git a/spec/classes/debian_testing_spec.rb b/spec/classes/debian_testing_spec.rb deleted file mode 100644 index 6e03326..0000000 --- a/spec/classes/debian_testing_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' -describe 'apt::debian::testing', :type => :class do - let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } } - it { - should contain_apt__source("debian_testing").with({ - "location" => "http://debian.mirror.iweb.ca/debian/", - "release" => "testing", - "repos" => "main contrib non-free", - "required_packages" => "debian-keyring debian-archive-keyring", - "key" => "46925553", - "key_server" => "subkeys.pgp.net", - "pin" => "-10" - }) - } -end diff --git a/spec/classes/debian_unstable_spec.rb b/spec/classes/debian_unstable_spec.rb deleted file mode 100644 index 8477a39..0000000 --- a/spec/classes/debian_unstable_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' -describe 'apt::debian::unstable', :type => :class do - let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } } - it { - should contain_apt__source("debian_unstable").with({ - "location" => "http://debian.mirror.iweb.ca/debian/", - "release" => "unstable", - "repos" => "main contrib non-free", - "required_packages" => "debian-keyring debian-archive-keyring", - "key" => "46925553", - "key_server" => "subkeys.pgp.net", - "pin" => "-10" - }) - } -end diff --git a/spec/defines/conf_spec.rb b/spec/defines/conf_spec.rb index 91b6d4e..208f209 100644 --- a/spec/defines/conf_spec.rb +++ b/spec/defines/conf_spec.rb @@ -1,5 +1,8 @@ require 'spec_helper' describe 'apt::conf', :type => :define do + let :pre_condition do + 'class { "apt": }' + end let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } } let :title do 'norecommends' diff --git a/spec/defines/pin_spec.rb b/spec/defines/pin_spec.rb index 206dbf1..b4443cc 100644 --- a/spec/defines/pin_spec.rb +++ b/spec/defines/pin_spec.rb @@ -1,5 +1,8 @@ require 'spec_helper' describe 'apt::pin', :type => :define do + let :pre_condition do + 'class { "apt": }' + end let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } } let(:title) { 'my_pin' } diff --git a/spec/defines/ppa_spec.rb b/spec/defines/ppa_spec.rb index e10481e..f078204 100644 --- a/spec/defines/ppa_spec.rb +++ b/spec/defines/ppa_spec.rb @@ -68,6 +68,9 @@ describe 'apt::ppa', :type => :define do end describe 'ensure absent' do + let :pre_condition do + 'class { "apt": }' + end let :facts do { :lsbdistrelease => '14.04', diff --git a/spec/defines/source_spec.rb b/spec/defines/source_spec.rb index 8ca7f8e..684a6f0 100644 --- a/spec/defines/source_spec.rb +++ b/spec/defines/source_spec.rb @@ -3,6 +3,9 @@ require 'spec_helper' describe 'apt::source', :type => :define do GPG_KEY_ID = '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30' + let :pre_condition do + 'class { "apt": }' + end let :title do 'my_source'