summaryrefslogtreecommitdiff
path: root/test/rubygems/helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/helper.rb')
-rw-r--r--test/rubygems/helper.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb
index 45a5a14251..70b200d7a0 100644
--- a/test/rubygems/helper.rb
+++ b/test/rubygems/helper.rb
@@ -563,14 +563,13 @@ class Gem::TestCase < Test::Unit::TestCase
Dir.chdir directory do
unless File.exist? ".git"
system @git, "init", "--quiet"
- system @git, "checkout", "-b", "master", "--quiet"
system @git, "config", "user.name", "RubyGems Tests"
system @git, "config", "user.email", "rubygems@example"
end
system @git, "add", gemspec
system @git, "commit", "-a", "-m", "a non-empty commit message", "--quiet"
- head = Gem::Util.popen(@git, "rev-parse", "master").strip
+ head = Gem::Util.popen(@git, "rev-parse", "HEAD").strip
end
return name, git_spec.version, directory, head
@@ -1555,7 +1554,7 @@ Also, a list:
# :stopdoc:
# only available in RubyGems tests
- PRIVATE_KEY_PASSPHRASE = "Foo bar".freeze
+ PRIVATE_KEY_PASSPHRASE = "Foo bar"
begin
PRIVATE_KEY = load_key "private"