]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Correct type() logic
authorHunter Haugen <hunter@puppetlabs.com>
Tue, 11 Nov 2014 18:46:01 +0000 (10:46 -0800)
committerHunter Haugen <hunter@puppetlabs.com>
Tue, 11 Nov 2014 18:46:01 +0000 (10:46 -0800)
It should NOT run if the future parser is enabled

spec/acceptance/type_spec.rb

index 15fa217daa791fdc227605b94347bf4e94456049..67e32480349275d7057501c9a1aae1e9961a0706 100755 (executable)
@@ -1,7 +1,7 @@
 #! /usr/bin/env ruby -S rspec
 require 'spec_helper_acceptance'
 
-describe 'type function', :unless => (UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) || !(is_future_parser_enabled?)) do
+describe 'type function', :unless => (UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) || is_future_parser_enabled?) do
   describe 'success' do
     it 'types arrays' do
       pp = <<-EOS