]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Fix unsupported platforms variable name in tests
authorColleen Murphy <colleen@puppetlabs.com>
Thu, 9 Apr 2015 22:47:04 +0000 (15:47 -0700)
committerColleen Murphy <colleen@puppetlabs.com>
Thu, 9 Apr 2015 22:53:16 +0000 (15:53 -0700)
unsupported_platforms is not a valid identifier, and trying to use it
causes acceptance tests to error out before running any tests. The
correct identifier for the unsupported platforms constants is
UNSUPPORTED_PLATFORMS.

spec/acceptance/fqdn_rand_base64_spec.rb
spec/acceptance/fqdn_rand_string_spec.rb

index 7c5894271498eee719675e9e3a8dacf755111cf3..1b4eb727c44eabc582649a34b5f0e43d4c774c00 100644 (file)
@@ -1,7 +1,7 @@
 #! /usr/bin/env ruby -S rspec
 require 'spec_helper_acceptance'
 
-describe 'fqdn_rand_base64 function', :unless => unsupported_platforms.include?(fact('operatingsystem')) do
+describe 'fqdn_rand_base64 function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
   describe 'success' do
     let(:facts_d) do
       if fact('is_pe', '--puppet') == "true"
index 0e79723ac6bc4c7e2c1fbf9439db8c4524b9514d..a934fbb9397ec2852583410f26870337b41d25ae 100644 (file)
@@ -1,7 +1,7 @@
 #! /usr/bin/env ruby -S rspec
 require 'spec_helper_acceptance'
 
-describe 'fqdn_rand_string function', :unless => unsupported_platforms.include?(fact('operatingsystem')) do
+describe 'fqdn_rand_string function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
   describe 'success' do
     let(:facts_d) do
       if fact('is_pe', '--puppet') == "true"