YUKI Hiroshi
null+****@clear*****
Thu Dec 26 12:03:13 JST 2013
YUKI Hiroshi 2013-12-26 12:03:13 +0900 (Thu, 26 Dec 2013) New Revision: ee2fb55bdb517c2b199e1f4c9ca199cbf39d7ff9 https://github.com/droonga/fluent-plugin-droonga/commit/ee2fb55bdb517c2b199e1f4c9ca199cbf39d7ff9 Merged d5217b2: Merge branch 'master' of 192.168.1.21:~piro/groonga/fluent-plugin-droonga into HEAD Message: Add a test of the "add" command for a request without "key" Modified files: test/unit/plugin/handler/test_add.rb Modified: test/unit/plugin/handler/test_add.rb (+10 -0) =================================================================== --- test/unit/plugin/handler/test_add.rb 2013-12-26 12:00:57 +0900 (3def810) +++ test/unit/plugin/handler/test_add.rb 2013-12-26 12:03:13 +0900 (d71c405) @@ -81,6 +81,16 @@ class AddHandlerTest < Test::Unit::TestCase table =****@worke*****["Users"] assert_equal(["japan"], table.collect(&:country)) end + + def test_missing_key_parameter + request = { + "table" => "Users", + "values" => {"country" => "japan"}, + } + assert_raise(Droonga::AddHandler::MissingPrimaryKey) do + process(request) + end + end end class NoKeyTest < self -------------- next part -------------- HTML����������������������������... Descargar