diff options
author | Colleen Murphy <colleen@puppetlabs.com> | 2015-04-09 15:47:04 -0700 |
---|---|---|
committer | Colleen Murphy <colleen@puppetlabs.com> | 2015-04-09 15:53:16 -0700 |
commit | e43f0582960707f8a7ff9f087ca2b521c1797a91 (patch) | |
tree | aeff42542a2e7fecc47fb912b281c16388648266 /spec/acceptance | |
parent | f2fa4fbd62b1cd10a25a19d7a8c4729b189e6312 (diff) | |
download | puppet-stdlib-e43f0582960707f8a7ff9f087ca2b521c1797a91.tar.gz puppet-stdlib-e43f0582960707f8a7ff9f087ca2b521c1797a91.tar.bz2 |
Fix unsupported platforms variable name in tests
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.
Diffstat (limited to 'spec/acceptance')
-rw-r--r-- | spec/acceptance/fqdn_rand_base64_spec.rb | 2 | ||||
-rw-r--r-- | spec/acceptance/fqdn_rand_string_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/acceptance/fqdn_rand_base64_spec.rb b/spec/acceptance/fqdn_rand_base64_spec.rb index 7c58942..1b4eb72 100644 --- a/spec/acceptance/fqdn_rand_base64_spec.rb +++ b/spec/acceptance/fqdn_rand_base64_spec.rb @@ -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" diff --git a/spec/acceptance/fqdn_rand_string_spec.rb b/spec/acceptance/fqdn_rand_string_spec.rb index 0e79723..a934fbb 100644 --- a/spec/acceptance/fqdn_rand_string_spec.rb +++ b/spec/acceptance/fqdn_rand_string_spec.rb @@ -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" |