Skip to content

Commit

Permalink
Fix ENV.clear spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Phoenix committed Nov 11, 2009
1 parent a32481f commit db0630d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/frozen/core/env/clear_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
orig = ENV.to_hash
begin
ENV.clear
env.should == {}

# This used 'env' the helper before. That shells out to 'env' which
# itself sets up certain environment variables before it runs, because
# the shell sets them up before it runs any command.
#
# Thusly, you can ONLY test this by asking through ENV itself.
ENV.size.should == 0
ensure
ENV.replace orig
end
Expand Down

0 comments on commit db0630d

Please sign in to comment.