5257f0
From c9b2eff36728266052ccfff54d3ac0a0624fd0f1 Mon Sep 17 00:00:00 2001
5257f0
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
5257f0
Date: Thu, 14 Feb 2013 11:50:41 +0100
088549
Subject: [PATCH] Use File.join insteado of manual path creation.
5257f0
5257f0
This prevents issues, when File.join in #new_default_spec removes
5257f0
superfluous slashes while they are kept in expected paths. E.g. the test
5257f0
would fail if ruby configuration specifies --with-ruby-version=''.
5257f0
---
5257f0
 test/rubygems/test_gem_commands_contents_command.rb | 8 ++++----
5257f0
 1 file changed, 4 insertions(+), 4 deletions(-)
5257f0
5257f0
diff --git a/test/rubygems/test_gem_commands_contents_command.rb b/test/rubygems/test_gem_commands_contents_command.rb
5257f0
index 60df53f..35c9631 100644
5257f0
--- a/test/rubygems/test_gem_commands_contents_command.rb
5257f0
+++ b/test/rubygems/test_gem_commands_contents_command.rb
5257f0
@@ -140,10 +140,10 @@ lib/foo.rb
5257f0
       @cmd.execute
5257f0
     end
5257f0
 
5257f0
-    expected = %W[
5257f0
-      #{Gem::ConfigMap[:bindir]}/default_command
5257f0
-      #{Gem::ConfigMap[:rubylibdir]}/default/gem.rb
5257f0
-      #{Gem::ConfigMap[:archdir]}/default_gem.so
5257f0
+    expected = [
5257f0
+      File.join(Gem::ConfigMap[:bindir], 'default_command'),
5257f0
+      File.join(Gem::ConfigMap[:rubylibdir], 'default/gem.rb'),
5257f0
+      File.join(Gem::ConfigMap[:archdir], 'default_gem.so')
5257f0
     ].sort.join "\n"
5257f0
 
5257f0
     assert_equal expected, @ui.output.chomp
5257f0
-- 
5257f0
1.8.1.2
5257f0