diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-04 21:54:58 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-04 21:54:58 +0000 |
commit | 091c24d51b962745bf887a729c81e847b257dc11 (patch) | |
tree | 0a8cd1085f63ffa64eff0d3c4da0d5a449e0c5a1 /test/rubygems/test_gem_commands_cert_command.rb | |
parent | 0454c0a2818ffc1df72e0672e4e272486b2ba536 (diff) | |
download | ruby-091c24d51b962745bf887a729c81e847b257dc11.tar.gz |
* lib/rubygems: Update to RubyGems 2.0.3
* test/rubygems: Tests for the above.
* NEWS: Added RubyGems 2.0.3 note.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_commands_cert_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_cert_command.rb | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/rubygems/test_gem_commands_cert_command.rb b/test/rubygems/test_gem_commands_cert_command.rb index 4adbec5e66..75db6c4e15 100644 --- a/test/rubygems/test_gem_commands_cert_command.rb +++ b/test/rubygems/test_gem_commands_cert_command.rb @@ -308,10 +308,12 @@ Removed '/CN=alternate/DC=example' end def test_execute_sign_default - private_key_path = File.join Gem.user_home, 'gem-private_key.pem' + FileUtils.mkdir_p File.join Gem.user_home, '.gem' + + private_key_path = File.join Gem.user_home, '.gem', 'gem-private_key.pem' Gem::Security.write PRIVATE_KEY, private_key_path - public_cert_path = File.join Gem.user_home, 'gem-public_cert.pem' + public_cert_path = File.join Gem.user_home, '.gem', 'gem-public_cert.pem' Gem::Security.write PUBLIC_CERT, public_cert_path path = File.join @tempdir, 'cert.pem' @@ -338,7 +340,9 @@ Removed '/CN=alternate/DC=example' end def test_execute_sign_no_cert - private_key_path = File.join Gem.user_home, 'gem-private_key.pem' + FileUtils.mkdir_p File.join Gem.user_home, '.gem' + + private_key_path = File.join Gem.user_home, '.gem', 'gem-private_key.pem' Gem::Security.write PRIVATE_KEY, private_key_path path = File.join @tempdir, 'cert.pem' @@ -364,7 +368,9 @@ ERROR: --certificate not specified and ~/.gem/gem-public_cert.pem does not exis end def test_execute_sign_no_key - public_cert_path = File.join Gem.user_home, 'gem-public_cert.pem' + FileUtils.mkdir_p File.join Gem.user_home, '.gem' + + public_cert_path = File.join Gem.user_home, '.gem', 'gem-public_cert.pem' Gem::Security.write PUBLIC_CERT, public_cert_path path = File.join @tempdir, 'cert.pem' |