summaryrefslogtreecommitdiff
path: root/spec/ruby/core/env/clear_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/env/clear_spec.rb')
-rw-r--r--spec/ruby/core/env/clear_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/env/clear_spec.rb b/spec/ruby/core/env/clear_spec.rb
index c184926cc2..c0d20193ad 100644
--- a/spec/ruby/core/env/clear_spec.rb
+++ b/spec/ruby/core/env/clear_spec.rb
@@ -1,10 +1,10 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
describe "ENV.clear" do
it "deletes all environment variables" do
orig = ENV.to_hash
begin
- ENV.clear
+ ENV.clear.should.equal?(ENV)
# This used 'env' the helper before. That shells out to 'env' which
# itself sets up certain environment variables before it runs, because