[Groonga-commit] groonga/fluent-plugin-droonga at 713876a [master] test column_create: add a test that checks column name

Back to archive index

Kosuke Asami null+****@clear*****
Tue Jul 16 14:04:17 JST 2013


Kosuke Asami	2013-07-16 14:04:17 +0900 (Tue, 16 Jul 2013)

  New Revision: 713876ab3e50aa32e3d7387849ae2319bcad59cd
  https://github.com/groonga/fluent-plugin-droonga/commit/713876ab3e50aa32e3d7387849ae2319bcad59cd

  Message:
    test column_create: add a test that checks column name

  Modified files:
    test/plugin/groonga/test_column_create.rb

  Modified: test/plugin/groonga/test_column_create.rb (+9 -0)
===================================================================
--- test/plugin/groonga/test_column_create.rb    2013-07-16 12:53:52 +0900 (6ccdcd8)
+++ test/plugin/groonga/test_column_create.rb    2013-07-16 14:04:17 +0900 (317f930)
@@ -19,4 +19,13 @@ class ColumnCreateTest < GroongaHandlerTest
     @handler.column_create({"table" => "Books", "name" => "title", "type" => "ShortText"})
     assert_equal([true], @worker.body)
   end
+
+  def test_name
+    @handler.table_create({"name" => "Books"})
+    @handler.column_create({"table" => "Books", "name" => "title", "type" => "ShortText"})
+    assert_equal(<<-SCHEMA, dump)
+table_create Books TABLE_HASH_KEY --key_type ShortText
+column_create Books title COLUMN_SCALAR ShortText
+    SCHEMA
+  end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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