[Groonga-commit] ranguba/gqtp at 65781ed [master] test: group creating connection test

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jan 7 15:28:23 JST 2014


Kouhei Sutou	2014-01-07 15:28:23 +0900 (Tue, 07 Jan 2014)

  New Revision: 65781edf9c7654b14ba703958dcf79435c46c4f0
  https://github.com/ranguba/gqtp/commit/65781edf9c7654b14ba703958dcf79435c46c4f0

  Message:
    test: group creating connection test

  Modified files:
    test/test-client.rb

  Modified: test/test-client.rb (+8 -6)
===================================================================
--- test/test-client.rb    2014-01-07 15:25:50 +0900 (b5d3ff4)
+++ test/test-client.rb    2014-01-07 15:28:23 +0900 (e217bb2)
@@ -21,6 +21,14 @@ require "socket"
 require "gqtp/client"
 
 class ClientTest < Test::Unit::TestCase
+  class CreateConnectionTest < self
+    def test_unknown
+      assert_raise(ArgumentError.new("unknown connection: <\"unknown\">")) do
+        GQTP::Client.new(:connection => "unknown")
+      end
+    end
+  end
+
   class RequestTest < self
     def setup
       @address = "127.0.0.1"
@@ -75,12 +83,6 @@ class ClientTest < Test::Unit::TestCase
       end
     end
 
-    def test_unknown_connection
-      assert_raise(ArgumentError.new("unknown connection: <\"unknown\">")) do
-        GQTP::Client.new(:connection => "unknown")
-      end
-    end
-
     class CloseTest < self
       def test_sync
         @response_body = "[]"
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index