Skip to content
Browse files

Update missed tests for rebase of #447

  • Loading branch information...
1 parent fc8f179 commit 410e5f3669a7eeb4a7a4aa0ef968f9194d6b3183 @drbrain drbrain committed Apr 4, 2013
Showing with 6 additions and 2 deletions.
  1. +4 −2 test/rubygems/test_gem_commands_cert_command.rb
  2. +2 −0 test/rubygems/test_gem_package.rb
View
6 test/rubygems/test_gem_commands_cert_command.rb
@@ -430,10 +430,12 @@ def test_execute_sign_default
end
def test_execute_sign_default_encrypted_key
- 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 ENCRYPTED_PRIVATE_KEY, private_key_path, 0600, PRIVATE_KEY_PASSPHRASE
- 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'
View
2 test/rubygems/test_gem_package.rb
@@ -203,6 +203,8 @@ def test_build_auto_signed
end
def test_build_auto_signed_encrypted_key
+ FileUtils.mkdir_p File.join(Gem.user_home, '.gem')
+
private_key_path = File.join Gem.user_home, '.gem', 'gem-private_key.pem'
FileUtils.cp ENCRYPTED_PRIVATE_KEY_PATH, private_key_path

0 comments on commit 410e5f3

Please sign in to comment.
Something went wrong with that request. Please try again.