summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/helper.rb8
-rw-r--r--test/rubygems/utilities.rb8
2 files changed, 8 insertions, 8 deletions
diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb
index f321b02e48..b1c6b84dc2 100644
--- a/test/rubygems/helper.rb
+++ b/test/rubygems/helper.rb
@@ -339,10 +339,10 @@ class Gem::TestCase < Test::Unit::TestCase
ENV["GEM_SPEC_CACHE"] = File.join @tempdir, 'spec_cache'
@orig_ruby = if ENV['RUBY']
- ruby = Gem.ruby
- Gem.ruby = ENV['RUBY']
- ruby
- end
+ ruby = Gem.ruby
+ Gem.ruby = ENV['RUBY']
+ ruby
+ end
@git = ENV['GIT'] || (win_platform? ? 'git.exe' : 'git')
diff --git a/test/rubygems/utilities.rb b/test/rubygems/utilities.rb
index 20416fe70b..613cf6c0ee 100644
--- a/test/rubygems/utilities.rb
+++ b/test/rubygems/utilities.rb
@@ -135,10 +135,10 @@ class Gem::FakeFetcher
def download(spec, source_uri, install_dir = Gem.dir)
name = File.basename spec.cache_file
path = if Dir.pwd == install_dir # see fetch_command
- install_dir
- else
- File.join install_dir, "cache"
- end
+ install_dir
+ else
+ File.join install_dir, "cache"
+ end
path = File.join path, name