[Groonga-commit] groonga/groonga-command at c3cb18d [master] test: add keyword arguments support to "parse" method

Back to archive index

Kosuke Asami null+****@clear*****
Thu Jul 11 14:52:01 JST 2013


Kosuke Asami	2013-07-11 14:52:01 +0900 (Thu, 11 Jul 2013)

  New Revision: c3cb18d88ab8fb9ccc77ffd52b741c50d4e52879
  https://github.com/groonga/groonga-command/commit/c3cb18d88ab8fb9ccc77ffd52b741c50d4e52879

  Message:
    test: add keyword arguments support to "parse" method

  Modified files:
    test/command/test-table-create.rb

  Modified: test/command/test-table-create.rb (+2 -3)
===================================================================
--- test/command/test-table-create.rb    2013-06-27 17:07:44 +0900 (3ad6dbe)
+++ test/command/test-table-create.rb    2013-07-11 14:52:01 +0900 (7c17e79)
@@ -27,8 +27,7 @@ class TableCreateCommandTest < Test::Unit::TestCase
       value_type        = "UInt32"
       default_tokenizer = "TokenBigram"
 
-      command = parse(name, flags, key_type, value_type,
-                      default_tokenizer)
+      command = parse([name, flags, key_type, value_type, default_tokenizer])
       assert_instance_of(Groonga::Command::TableCreate, command)
       assert_equal({
                      :name              => name,
@@ -41,7 +40,7 @@ class TableCreateCommandTest < Test::Unit::TestCase
     end
 
     private
-    def parse(*arguments)
+    def parse(arguments)
       super("table_create", arguments, :output_type => false)
     end
   end
-------------- next part --------------
HTML����������������������������...
Download 



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