Merge branch 'proxy'
[puppet-modules/puppetlabs-apt.git] / spec / classes / release_spec.rb
index a8b1448ac821da5811649c3dc1ce9f759430034a..d131b228109dfccd90ec85a9b1cabd61a5e8bb65 100644 (file)
@@ -11,11 +11,12 @@ describe 'apt::release', :type => :class do
   it { should include_class("apt::params") }
 
   it {
-    should contain_file("/etc/apt/apt.conf.d/01release")\
-      .with_owner("root")\
-      .with_group("root")\
-      .with_mode(644)\
-      .with_content("APT::Default-Release \"#{param_set[:release_id]}\";")
+    should contain_file("/etc/apt/apt.conf.d/01release").with({
+      "mode"    => "0644",
+      "owner"   => "root",
+      "group"   => "root",
+      "content" => "APT::Default-Release \"#{param_set[:release_id]}\";"
+    })
   }
 end