cprice-puppet/puppet — comment on commit 85077ea13ce9b12aee6179158c3c2176617e0251
File: spec/unit/util/execution_spec.rb line 29
By cprice-puppet:

Because I'm a noob and I didn't know it existed? :) Actually, for this
particular test I'm a little paranoid about making sure I have a full clone
as opposed to possibly sharing references between the resulting hash and
ENV. Frankly, the ENV object scares me because it seems to be implemented
somewhat differently in 1.8.5 as compared to newer versions, and I don't
have a complete understanding of those differences.

"to_hash" would probably work fine though. I'll read up on it tomorrow and
try it out, thanks for the pointer.

On Wed, Feb 29, 2012 at 5:32 PM, Nick Lewis <
reply@reply.github.com
> wrote:

> Is there a reason `ENV.to_hash` doesn't work?
>
> ---
> Reply to this email directly or view it on GitHub:
>
> https://github.com/cprice-puppet/puppet/commit/85077ea13ce9b12aee6179158c3c2176617e0251#commitcomment-1029000
>