[Groonga-commit] groonga/groonga [master] work HTTP XML response test again.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 6月 22日 (火) 15:30:46 JST


Kouhei Sutou	2010-06-22 06:30:46 +0000 (Tue, 22 Jun 2010)

  New Revision: 77d37a2f85cc94da0f2aff5289ff20e93f825b92

  Log:
    work HTTP XML response test again.

  Modified files:
    test/unit/http/test-http-select-basic.rb

  Modified: test/unit/http/test-http-select-basic.rb (+5 -4)
===================================================================
--- test/unit/http/test-http-select-basic.rb    2010-06-22 06:25:03 +0000 (2d4d67c)
+++ test/unit/http/test-http-select-basic.rb    2010-06-22 06:30:46 +0000 (d121912)
@@ -755,8 +755,9 @@ module HTTPSelectBasicTests
 </SEGMENT>
 </SEGMENTS>
 EOF
-    assert_select_xml(expected, {:table => "users",
-                                 :output_columns => "_id,_key,real_name,hp"})
+    assert_select_xml(expected.strip,
+                      {:table => "users",
+                       :output_columns => "_id,_key,real_name,hp"})
   end
 
   def test_xml_with_offset
@@ -776,7 +777,7 @@ EOF
 </SEGMENT>
 </SEGMENTS>
 EOF
-    assert_select_xml(expected,
+    assert_select_xml(expected.strip,
                       {:table => "users", :offset => 2, :limit => 1,
                        :output_columns => "_id"})
   end
@@ -813,7 +814,7 @@ EOF
 </SEGMENT>
 </SEGMENTS>
 EOF
-    assert_select_xml(expected,
+    assert_select_xml(expected.strip,
                       {:table => "users", :sortby => "_key", :offset => 2,
                        :output_columns => "_id,_key,real_name,hp"})
   end




Groonga-commit メーリングリストの案内
Back to archive index