summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_util.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2021-02-01 16:17:16 +0100
committerHiroshi SHIBATA <[email protected]>2021-03-08 13:47:35 +0900
commit53468cc11147b0d285fc376fc546b677dad600ca (patch)
treeeb9c97f544d089be2d324126b025b11f41a22c90 /test/rubygems/test_gem_util.rb
parent2ab6b7a7516e1b2c48a66ce513afabb62d101461 (diff)
Sync latest development version of bundler & rubygems
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4143
Diffstat (limited to 'test/rubygems/test_gem_util.rb')
-rw-r--r--test/rubygems/test_gem_util.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rubygems/test_gem_util.rb b/test/rubygems/test_gem_util.rb
index acf7ac8962..7197f664e2 100644
--- a/test/rubygems/test_gem_util.rb
+++ b/test/rubygems/test_gem_util.rb
@@ -46,8 +46,8 @@ class TestGemUtil < Gem::TestCase
assert_equal File.join(@tempdir, 'd'), paths[0]
assert_equal @tempdir, paths[1]
- assert_equal File.realpath(Dir.tmpdir), paths[2]
- assert_equal File.realpath("..", Dir.tmpdir), paths[3]
+ assert_equal File.realpath("..", @tempdir), paths[2]
+ assert_equal File.realpath("../..", @tempdir), paths[3]
ensure
# restore default permissions, allow the directory to be removed
FileUtils.chmod(0775, 'd/e') unless win_platform? || java_platform?
@@ -72,10 +72,10 @@ class TestGemUtil < Gem::TestCase
]
files_with_absolute_base = Gem::Util.glob_files_in_dir('*.rb', File.join(@tempdir, 'g'))
- assert_equal expected_paths.to_set, files_with_absolute_base.to_set
+ assert_equal expected_paths.sort, files_with_absolute_base.sort
files_with_relative_base = Gem::Util.glob_files_in_dir('*.rb', 'g')
- assert_equal expected_paths.to_set, files_with_relative_base.to_set
+ assert_equal expected_paths.sort, files_with_relative_base.sort
end
def test_correct_for_windows_path