YUKI Hiroshi
null+****@clear*****
Thu Feb 6 19:37:13 JST 2014
YUKI Hiroshi 2014-02-06 19:37:13 +0900 (Thu, 06 Feb 2014) New Revision: a485b5a5f39fde9b5fe1940fc0924def9b3323ee https://github.com/droonga/fluent-plugin-droonga/commit/a485b5a5f39fde9b5fe1940fc0924def9b3323ee Message: Update tests for error handling Modified files: test/unit/plugin/handler/test_search.rb Modified: test/unit/plugin/handler/test_search.rb (+6 -2) =================================================================== --- test/unit/plugin/handler/test_search.rb 2014-02-06 19:30:29 +0900 (559208f) +++ test/unit/plugin/handler/test_search.rb 2014-02-06 19:37:13 +0900 (393d504) @@ -78,13 +78,17 @@ class SearchHandlerTest < Test::Unit::TestCase class NoParameterTest < self def test_empty - assert_search({}, {}) + assert_raise(Droonga::Searcher::NoQuery) do + search({}) + end end end class QueriesTest < self def test_empty - assert_search({}, {"queries" => {}}) + assert_raise(Droonga::Searcher::NoQuery) do + search({"queries" => {}}) + end end end -------------- next part -------------- HTML����������������������������... Download