1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Unset SOURCE_DATE_EPOCH on Rubygems test cases

Relates to r66554. When test suites run with SOURCE_DATE_EPOCH, several
tests would fail.  Environment Variables are already kept with this
setup & teardown phase.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
sorah 2018-12-30 03:15:58 +00:00
parent e8d3fb6cda
commit 6b861342b9

View file

@ -254,6 +254,7 @@ class Gem::TestCase < (defined?(Minitest::Test) ? Minitest::Test : MiniTest::Uni
@orig_gem_env_requirements = ENV.to_hash
ENV['GEM_VENDOR'] = nil
ENV['SOURCE_DATE_EPOCH'] = nil
@current_dir = Dir.pwd
@fetcher = nil