Block this from running on unsupported platforms.
[puppet-modules/puppetlabs-apt.git] / spec / acceptance / pin_spec.rb
index a38dfa4b2702d0e3e2af33b4e4e7acb35b2d4360..07fc6073022d84198b544c6dbd66bc61a74943d2 100644 (file)
@@ -1,6 +1,6 @@
 require 'spec_helper_acceptance'
 
-describe 'apt::pin define' do
+describe 'apt::pin define', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
   context 'defaults' do
     it 'should work with no errors' do
       pp = <<-EOS
@@ -150,7 +150,7 @@ describe 'apt::pin define' do
 
       describe file('/etc/apt/preferences.d/vim-puppet.pref') do
         it { should be_file }
-        it { should contain 'Pin: origin "testrelease"' }
+        it { should contain 'Pin: origin testrelease' }
       end
     end
   end