Please review pull request #150: (#12012) Fix ruby 1.8.5 incompatibility in new spec test opened by (cprice-puppet)

Description:

  • Opened: Sat Jan 21 01:18:31 UTC 2012
  • Based on: puppetlabs:master (491d2aafb2c7d7a049c76c1721e8f13427cace6f)
  • Requested merge: cprice-puppet:bug/master/12012-global-ENV-LANG-override (d8be0a6233a59d07dd1497d67faadcf1904dde58)

Diff follows:

diff --git a/spec/unit/util/resolution_spec.rb b/spec/unit/util/resolution_spec.rb
index 0721792..f308738 100755
--- a/spec/unit/util/resolution_spec.rb
+++ b/spec/unit/util/resolution_spec.rb
@@ -67,9 +67,9 @@
       sentinel_value = "Abracadabra"
 
       # grab some values from the existing ENV (arbitrarily choosing 3 here)
-      ENV.first(3).each do |key, val|
+      ENV.keys.first(3).each do |key|
         # save the original values so that we can test against them later
-        orig_env[key] = val
+        orig_env[key] = ENV[key]
         # create bogus temp values for the chosen keys
         new_env[key] = sentinel_value
       end

    

--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To post to this group, send email to puppet-dev@googlegroups.com.
To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to