X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Fclasses%2Fdebian_unstable_spec.rb;h=f5ed4558a755df22882842a130870d1eccc59466;hb=4c9174e51728503c99d2ce224b5443a3c4286df3;hp=5673b78161fc66a4871a93950dfa4d8c9111f094;hpb=2d688f4cdc121da434db873f818dd95977385a46;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/classes/debian_unstable_spec.rb b/spec/classes/debian_unstable_spec.rb index 5673b78..f5ed455 100644 --- a/spec/classes/debian_unstable_spec.rb +++ b/spec/classes/debian_unstable_spec.rb @@ -1,13 +1,15 @@ require 'spec_helper' describe 'apt::debian::unstable', :type => :class do + let(:facts) { { :lsbdistid => 'Debian' } } it { - should create_resource("Apt::source", "debian_unstable")\ - .with_param("location", "http://debian.mirror.iweb.ca/debian/")\ - .with_param("release", "unstable")\ - .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_unstable").with({ + "location" => "http://debian.mirror.iweb.ca/debian/", + "release" => "unstable", + "repos" => "main contrib non-free", + "required_packages" => "debian-keyring debian-archive-keyring", + "key" => "55BE302B", + "key_server" => "subkeys.pgp.net", + "pin" => "-10" + }) } end