Merge pull request #353 from Smartesting/add-support-for-linuxmint-operatingsystem
[puppet-modules/puppetlabs-apt.git] / spec / classes / release_spec.rb
index 221df03683380c2669859b633dfe9dd497da2467..e43f449d62689907d63a6ea0e2a86e2414db4d1d 100644 (file)
@@ -1,5 +1,6 @@
 require 'spec_helper'
 describe 'apt::release', :type => :class do
+  let(:facts) { { :lsbdistid => 'Debian' } }
   let (:title) { 'my_package' }
 
   let :param_set do
@@ -8,13 +9,13 @@ describe 'apt::release', :type => :class do
 
   let (:params) { param_set }
 
-  it { should include_class("apt::params") }
+  it { should contain_class("apt::params") }
 
   it {
     should contain_file("/etc/apt/apt.conf.d/01release").with({
+      "mode"    => "0644",
       "owner"   => "root",
       "group"   => "root",
-      "mode"    => 644,
       "content" => "APT::Default-Release \"#{param_set[:release_id]}\";"
     })
   }