Kosuke Asami
null+****@clear*****
Wed Jan 13 17:30:29 JST 2016
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����������������������������... Télécharger