require File.dirname(__FILE__) + '/../../spec_helper'

describe "ENV.clear" do
  it "deletes all environment variables" do
    orig = ENV.to_hash
    begin
      ENV.clear
      ENV.should == {}
    ensure
      ENV.replace orig
    end
  end

end

require File.dirname(__FILE__) + '/../../spec_helper'

describe "ENV.clear" do
  it "deletes all environment variables" do
    orig = ENV.to_hash
    begin
      ENV.clear
      env.should == {}
    ensure
      ENV.replace orig
    end
  end

end

Revert "change env to ENV"
Revert "change env to ENV"

This reverts commit 789b8248a6f13710177488284505e45ee452923d.
