diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 08:04:04 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 08:04:04 +0000 |
commit | 0a7d24cc5aa8d0066e123a9b0594ac6fba9ad60a (patch) | |
tree | d1eaeda1b3ff0893c96457f61f2c8c9363aa460e /test/rubygems | |
parent | d9422d8721d003d81ba00b8843e7c39c1359880e (diff) | |
download | ruby-0a7d24cc5aa8d0066e123a9b0594ac6fba9ad60a.tar.gz |
* lib/rubygems/test_case.rb: Determine path to certificates to avoid
build-dir problems.
* test/rubygems/test_gem_security_signer.rb: Use predetermined paths
to avoid build-dir problems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems')
-rw-r--r-- | test/rubygems/test_gem_security_signer.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/test/rubygems/test_gem_security_signer.rb b/test/rubygems/test_gem_security_signer.rb index cf9ea2196d..1db023b325 100644 --- a/test/rubygems/test_gem_security_signer.rb +++ b/test/rubygems/test_gem_security_signer.rb @@ -13,12 +13,7 @@ class TestGemSecuritySigner < Gem::TestCase def setup super - @cert_file = - if 32 == (Time.at(2**32) rescue 32) then - File.expand_path 'test/rubygems/public_cert_32.pem', @current_dir - else - File.expand_path 'test/rubygems/public_cert.pem', @current_dir - end + @cert_file = PUBLIC_CERT end def test_initialize @@ -68,7 +63,7 @@ class TestGemSecuritySigner < Gem::TestCase end def test_initialize_key_path - key_file = File.expand_path 'test/rubygems/private_key.pem', @current_dir + key_file = PRIVATE_KEY_PATH signer = Gem::Security::Signer.new key_file, nil |