X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Fclasses%2Fdebian_testing_spec.rb;h=6e0332652feb24524960e355c8a36ae34bac50fc;hb=bc55471caabb01993050df99f09c6a1024abe72d;hp=0ee1b2efc3427a9435c4b3d0adbd3ea4c6c12f82;hpb=2d688f4cdc121da434db873f818dd95977385a46;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/classes/debian_testing_spec.rb b/spec/classes/debian_testing_spec.rb index 0ee1b2e..6e03326 100644 --- a/spec/classes/debian_testing_spec.rb +++ b/spec/classes/debian_testing_spec.rb @@ -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