[前][次][番号順一覧][スレッド一覧]

ruby-changes:25947

From: naruse <ko1@a...>
Date: Fri, 30 Nov 2012 05:34:47 +0900 (JST)
Subject: [ruby-changes:25947] naruse:r38004 (trunk): Sort th result to compare multiple lines

naruse	2012-11-30 05:34:29 +0900 (Fri, 30 Nov 2012)

  New Revision: 38004

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38004

  Log:
    Sort th result to compare multiple lines
    
    The order of the lines is depend on Dir.glob's result.

  Modified files:
    trunk/test/rubygems/test_gem_commands_contents_command.rb

Index: test/rubygems/test_gem_commands_contents_command.rb
===================================================================
--- test/rubygems/test_gem_commands_contents_command.rb	(revision 38003)
+++ test/rubygems/test_gem_commands_contents_command.rb	(revision 38004)
@@ -146,7 +146,7 @@
 #{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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]