Fix test to avoid failure from the order of Dir.foreach

The order of Dir.foreach, which is internally used in Pathname), is not
stable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-12-25 01:20:17 +00:00
Родитель 94b57518b1
Коммит 5688e811bd
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -61,7 +61,7 @@ Removed file specifications/c-2.gemspec
OUTPUT
assert_equal expected, @ui.output
assert_equal expected.lines.sort, @ui.output.lines.sort
assert_equal Gem.dir, @userhome
assert_equal Gem.path, [@gemhome, @userhome]
@ -114,7 +114,7 @@ Extra file specifications/c-2.gemspec
OUTPUT
assert_equal expected, @ui.output
assert_equal expected.lines.sort, @ui.output.lines.sort
assert_equal Gem.dir, @userhome
assert_equal Gem.path, [@gemhome, @userhome]