1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
parent 94b57518b1
commit 5688e811bd

View file

@ -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]