Merge pull request #353 from Smartesting/add-support-for-linuxmint-operatingsystem
[puppet-modules/puppetlabs-apt.git] / spec / classes / debian_testing_spec.rb
index 0ee1b2efc3427a9435c4b3d0adbd3ea4c6c12f82..6e0332652feb24524960e355c8a36ae34bac50fc 100644 (file)
@@ -1,13 +1,15 @@
 require 'spec_helper'
 describe 'apt::debian::testing', :type => :class do
+  let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } }
   it {
-    should create_resource("Apt::source", "debian_testing")\
-      .with_param("location", "http://debian.mirror.iweb.ca/debian/")\
-      .with_param("release", "testing")\
-      .with_param("repos", "main contrib non-free")\
-      .with_param("required_packages", "debian-keyring debian-archive-keyring")\
-      .with_param("key", "55BE302B")\
-      .with_param("key_server", "subkeys.pgp.net")\
-      .with_param("pin", "-10")
+    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