Fix logic issue with not including windows for testing ensure_packages as ruby and gem are not on the install path

This commit is contained in:
Travis Fields 2014-10-28 15:35:56 -07:00
parent a6f3f781d1
commit 5497f83507

View file

@ -1,7 +1,7 @@
#! /usr/bin/env ruby -S rspec #! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance' require 'spec_helper_acceptance'
describe 'ensure_packages function', :unless => (UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) || fact('operatingsystem') != 'windows') do describe 'ensure_packages function', :unless => (UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) && fact('operatingsystem') != 'windows') do
describe 'success' do describe 'success' do
it 'ensure_packages a package' do it 'ensure_packages a package' do
apply_manifest('package { "rake": ensure => absent, provider => "gem", }') apply_manifest('package { "rake": ensure => absent, provider => "gem", }')