YUKI Hiroshi
null+****@clear*****
Wed Jan 22 19:29:42 JST 2014
YUKI Hiroshi 2014-01-22 19:29:42 +0900 (Wed, 22 Jan 2014) New Revision: 76e66fcfd27e2afa0f3405bba475f9f767b55b0b https://github.com/droonga/fluent-plugin-droonga/commit/76e66fcfd27e2afa0f3405bba475f9f767b55b0b Message: Add test for error case to trying to delete an unknown column Modified files: test/unit/plugin/handler/groonga/test_column_create.rb Modified: test/unit/plugin/handler/groonga/test_column_create.rb (+10 -0) =================================================================== --- test/unit/plugin/handler/groonga/test_column_create.rb 2014-01-22 19:25:54 +0900 (78b22ca) +++ test/unit/plugin/handler/groonga/test_column_create.rb 2014-01-22 19:29:42 +0900 (209bb19) @@ -25,6 +25,16 @@ class ColumnCreateTest < GroongaHandlerTest ) end + def test_unknown_table + process(:column_create, + {"table" => "Unknown", "name" => "title", "type" => "ShortText"}) + response =****@messe***** + assert_equal( + [[Droonga::GroongaHandler::Status::INVALID_ARGUMENT, NORMALIZED_START_TIME, NORMALIZED_ELAPSED_TIME], true], + [normalize_header(response.first), response.last] + ) + end + def test_name process(:table_create, {"name" => "Books"}) process(:column_create, -------------- next part -------------- HTML����������������������������... Download