Masafumi Yokoyama
null+****@clear*****
Thu Feb 11 21:56:14 JST 2016
Masafumi Yokoyama 2016-02-11 21:56:14 +0900 (Thu, 11 Feb 2016) New Revision: a00c944c54b13df25a474d4d0b5481f3127aa8d2 https://github.com/ranguba/groonga-client/commit/a00c944c54b13df25a474d4d0b5481f3127aa8d2 Message: Add a missing require to fix response class for "table_create" command Added files: test/response/test-table-create.rb Modified files: lib/groonga/client/response.rb Modified: lib/groonga/client/response.rb (+1 -0) =================================================================== --- lib/groonga/client/response.rb 2016-02-07 10:51:45 +0900 (4dfe7c2) +++ lib/groonga/client/response.rb 2016-02-11 21:56:14 +0900 (adab1ef) @@ -36,4 +36,5 @@ require "groonga/client/response/quit" require "groonga/client/response/register" require "groonga/client/response/select" require "groonga/client/response/status" +require "groonga/client/response/table_create" require "groonga/client/response/table_list" Added: test/response/test-table-create.rb (+32 -0) 100644 =================================================================== --- /dev/null +++ test/response/test-table-create.rb 2016-02-11 21:56:14 +0900 (5159843) @@ -0,0 +1,32 @@ +# Copyright (C) 2016 Masafumi Yokoyama <yokoyama �� clear-code.com> +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +require "response/helper" + +class TestResponseTableCreate < Test::Unit::TestCase + class TestParseRawResponse < self + include TestResponseHelper + + def test_table_create + header = [0,1372430096.70991,0.000522851943969727] + body = true + raw_response = [header, body].to_json + + response = parse_raw_response("table_create", raw_response) + assert_equal(Groonga::Client::Response::TableCreate, response.class) + end + end +end -------------- next part -------------- HTML����������������������������...Download