aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_commands_contents_command.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 20:34:29 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 20:34:29 +0000
commite818b24c44572dda8d430bfc8d9d755602de1249 (patch)
tree49388c0b92be8bcf79b383cdffc2bcf8bbb0ba60 /test/rubygems/test_gem_commands_contents_command.rb
parentd1d4490a57413ff5cb7e8bd0274bb34c7da68d29 (diff)
downloadruby-e818b24c44572dda8d430bfc8d9d755602de1249.tar.gz
Sort th result to compare multiple lines
The order of the lines is depend on Dir.glob's result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_commands_contents_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_contents_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_commands_contents_command.rb b/test/rubygems/test_gem_commands_contents_command.rb
index 42e6053b21..9e4ea59d6a 100644
--- a/test/rubygems/test_gem_commands_contents_command.rb
+++ b/test/rubygems/test_gem_commands_contents_command.rb
@@ -146,7 +146,7 @@ lib/foo.rb
#{Gem::ConfigMap[:archdir]}/default_gem.so
EOF
- assert_equal expected, @ui.output
+ assert_equal expected.lines.sort, @ui.output.line.sort
assert_equal "", @ui.error
end